Module: LogStruct::Integrations::ActionMailer::FallbackErrorHandlers::Handlers Abstract
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/log_struct/integrations/action_mailer/fallback_error_handlers.rb
Overview
This module is abstract.
Subclasses must implement the abstract methods below.
The handlers, for a mailer and (through ClassMethods) for the mailer class, which ActionMailer::MailDeliveryJob passes an error to. Both have a logger.
Instance Method Summary collapse
Instance Method Details
#log_and_ignore_error(ex) ⇒ void
This method returns an undefined value.
37 38 39 |
# File 'lib/log_struct/integrations/action_mailer/fallback_error_handlers.rb', line 37 def log_and_ignore_error(ex) FallbackErrorHandlers.handle(handler_logger, ex, report: false, reraise: false) end |
#log_and_report_error(ex) ⇒ void
This method returns an undefined value.
42 43 44 |
# File 'lib/log_struct/integrations/action_mailer/fallback_error_handlers.rb', line 42 def log_and_report_error(ex) FallbackErrorHandlers.handle(handler_logger, ex, report: true, reraise: false) end |
#log_and_reraise_error(ex) ⇒ void
This method returns an undefined value.
47 48 49 |
# File 'lib/log_struct/integrations/action_mailer/fallback_error_handlers.rb', line 47 def log_and_reraise_error(ex) FallbackErrorHandlers.handle(handler_logger, ex, report: false, reraise: true) end |