module ActiveSupport::Rescuable

def handler_for_rescue(exception) # :nodoc:

:nodoc:
this directly, so keeping it around for compatibility.
Internal handler lookup. Delegates to class method. Some libraries call
def handler_for_rescue(exception) # :nodoc:
  self.class.handler_for_rescue exception, object: self
end

def rescue_with_handler(exception)

rescue_from handlers (method calls, +instance_exec+ blocks).
Delegates to the class method, but uses the instance as the subject for
def rescue_with_handler(exception)
  self.class.rescue_with_handler exception, object: self
end