Class: Artery::SentryErrorHandler
- Inherits:
-
ErrorHandler
- Object
- ErrorHandler
- Artery::SentryErrorHandler
- 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 = { extra: {} } [:extra][:artery] = exception.artery_context if exception.respond_to?(:artery_context) Sentry.capture_exception(exception, **) end |