Sha256: 18c3b22cc5ac73c1eca9327d2903bd22ecb85211e9fccb3fdd7c8fe003885421
Contents?: true
Size: 786 Bytes
Versions: 40
Compression:
Stored size: 786 Bytes
Contents
# frozen_string_literal: true module ActionMailer # :nodoc: # = Action Mailer \Rescuable # # Provides # {rescue_from}[rdoc-ref:ActiveSupport::Rescuable::ClassMethods#rescue_from] # for mailers. Wraps mailer action processing, mail job processing, and mail # delivery to handle configured errors. module Rescuable extend ActiveSupport::Concern include ActiveSupport::Rescuable class_methods do def handle_exception(exception) # :nodoc: rescue_with_handler(exception) || raise(exception) end end def handle_exceptions # :nodoc: yield rescue => exception rescue_with_handler(exception) || raise end private def process(...) handle_exceptions do super end end end end
Version data entries
40 entries across 40 versions & 5 rubygems