Method: Sentry.capture_exception

Defined in:
lib/sentry-ruby.rb

.capture_exception(exception, **options) {|scope| ... } ⇒ Event?

Takes an exception and reports it to Sentry via the currently active hub.

Yield Parameters:

Returns:



426
427
428
429
# File 'lib/sentry-ruby.rb', line 426

def capture_exception(exception, **options, &block)
  return unless initialized?
  get_current_hub.capture_exception(exception, **options, &block)
end