Module: ActionMailer::Rescuable

Extended by:
ActiveSupport::Concern
Includes:
ActiveSupport::Rescuable
Included in:
Base
Defined in:
actionmailer/lib/action_mailer/rescuable.rb

Overview

Provides `rescue_from` for mailers. Wraps mailer action processing, mail job processing, and mail delivery.

Instance Method Summary collapse

Methods included from ActiveSupport::Concern

append_features, class_methods, extended, included

Methods included from ActiveSupport::Rescuable

#handler_for_rescue, #rescue_with_handler

Instance Method Details

#handle_exceptionsObject

:nodoc:


14
15
16
17
18
# File 'actionmailer/lib/action_mailer/rescuable.rb', line 14

def handle_exceptions #:nodoc:
  yield
rescue => exception
  rescue_with_handler(exception) || raise
end