Class: Artery::SentryErrorHandler

Inherits:
ErrorHandler show all
Defined in:
lib/artery/errors.rb

Class Method Summary collapse

Class Method Details

.handle(exception) ⇒ Object



58
59
60
61
62
63
64
65
66
67
# File 'lib/artery/errors.rb', line 58

def self.handle(exception)
  super

  options = {
    extra: {}
  }
  options[:extra][:artery] = exception.artery_context if exception.respond_to?(:artery_context)

  Sentry.capture_exception(exception, **options)
end