Tries to rescue the exception by looking up and calling a registered handler.
Source Code
# File action_controller/rescue.rb, line 186 def rescue_action_with_handler(exception) if handler = handler_for_rescue(exception) if handler.arity != 0 handler.call(exception) else handler.call end true # don't rely on the return value of the handler end end
<code/>and<pre/>for code samples.