Class: ActiveError::ErrorSubscriber
- Inherits:
-
Object
- Object
- ActiveError::ErrorSubscriber
- Defined in:
- lib/active_error/error_subscriber.rb
Instance Method Summary collapse
Instance Method Details
#report(exception, context:, handled:, **_opts) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/active_error/error_subscriber.rb', line 5 def report(exception, context:, handled:, **_opts) return if !ActiveError.enabled? || handled || ActiveError.ignored_classes.include?(exception.class.to_s) Captor.new(exception:, request: context[:active_error_request]).capture end |