protected Method

Rescue.rescue_action_with_handler(exception)

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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.