Method: Sentry::Configuration#exception_class_allowed?

Defined in:
lib/sentry/configuration.rb

#exception_class_allowed?(exc) ⇒ Boolean

Returns:

  • (Boolean)


688
689
690
691
692
693
694
695
696
697
698
699
# File 'lib/sentry/configuration.rb', line 688

def exception_class_allowed?(exc)
  if exc.is_a?(Sentry::Error)
    # Try to prevent error reporting loops
    log_debug("Refusing to capture Sentry error: #{exc.inspect}")
    false
  elsif excluded_exception?(exc)
    log_debug("User excluded error: #{exc.inspect}")
    false
  else
    true
  end
end