Method: Sentry.exception_captured?

Defined in:
lib/sentry-ruby.rb

.exception_captured?(exc) ⇒ Boolean

Checks if the exception object has been captured by the SDK.

Returns:

  • (Boolean)
[View source]

529
530
531
532
# File 'lib/sentry-ruby.rb', line 529

def exception_captured?(exc)
  return false unless initialized?
  !!exc.instance_variable_get(CAPTURED_SIGNATURE)
end