What happen when a controller raises a custom exception ?

Try rescue_from:
http://api.rubyonrails.org/classes/ActiveSupport/Rescuable/ClassMethods.html#M000978