module ActionMessenger::Rescuable

Public Instance Methods

handle_exceptions() { || ... } click to toggle source

call rescue_from when an exception occurs

# File lib/action_messenger/rescuable.rb, line 7
def handle_exceptions
  yield
rescue => e
  rescue_with_handler(e) || raise(e)
end