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)


540
541
542
543
# File 'lib/sentry-ruby.rb', line 540

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