Module: SlackSender::DeliveryAxn::ExceptionHandlers
- Included in:
- SlackSender::DeliveryAxn
- Defined in:
- lib/slack_sender/delivery_axn/exception_handlers.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/slack_sender/delivery_axn/exception_handlers.rb', line 6 def self.included(base) # Log warnings for all Slack API errors # Channel-related errors (NotInChannel, ChannelNotFound, IsArchived) use a different prefix # to distinguish "message send failed" from other API errors (auth failures, etc.) base.on_exception(:log_warning_from_exception, if: ::Slack::Web::Api::Errors::SlackError) end |