Method: ActiveError::ErrorSubscriber#report

Defined in:
lib/active_error/error_subscriber.rb

#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