Class: Sentry::Mechanism
- Defined in:
- lib/sentry/interfaces/mechanism.rb
Instance Attribute Summary collapse
-
#handled ⇒ Boolean
A manually captured exception has handled set to true, false if coming from an integration where we intercept an uncaught exception.
-
#type ⇒ String
Generic identifier, mostly the source integration for this exception.
Instance Method Summary collapse
-
#initialize(type: "generic", handled: true) ⇒ Mechanism
constructor
A new instance of Mechanism.
Methods inherited from Interface
Constructor Details
#initialize(type: "generic", handled: true) ⇒ Mechanism
Returns a new instance of Mechanism.
15 16 17 18 |
# File 'lib/sentry/interfaces/mechanism.rb', line 15 def initialize(type: "generic", handled: true) @type = type @handled = handled end |
Instance Attribute Details
#handled ⇒ Boolean
A manually captured exception has handled set to true, false if coming from an integration where we intercept an uncaught exception. Defaults to true here and will be set to false explicitly in integrations.
13 14 15 |
# File 'lib/sentry/interfaces/mechanism.rb', line 13 def handled @handled end |
#type ⇒ String
Generic identifier, mostly the source integration for this exception.
7 8 9 |
# File 'lib/sentry/interfaces/mechanism.rb', line 7 def type @type end |