Skip to Content Skip to Search

Active Support Rescuable

Rescuable module adds support for easier exception handling.

Namespace
Methods
R

Instance Public methods

rescue_with_handler(exception)

Delegates to the class method, but uses the instance as the subject for rescue_from handlers (method calls, instance_exec blocks).

# File activesupport/lib/active_support/rescuable.rb, line 166
def rescue_with_handler(exception)
  self.class.rescue_with_handler exception, object: self
end