Class: Sentry::CustomExceptionInterface
- Inherits:
-
Interface
- Object
- Interface
- Sentry::CustomExceptionInterface
- Defined in:
- lib/fluent/plugin/out_sentry.rb
Constant Summary collapse
- SKIP_INSPECTION_ATTRIBUTES =
[:@stacktrace]
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, message:, stacktrace: nil) ⇒ CustomExceptionInterface
constructor
A new instance of CustomExceptionInterface.
- #to_hash ⇒ Object
Constructor Details
#initialize(type:, message:, stacktrace: nil) ⇒ CustomExceptionInterface
Returns a new instance of CustomExceptionInterface.
100 101 102 103 104 |
# File 'lib/fluent/plugin/out_sentry.rb', line 100 def initialize(type:, message:, stacktrace: nil) @type = type @value = @stacktrace = stacktrace end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
96 97 98 |
# File 'lib/fluent/plugin/out_sentry.rb', line 96 def end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
95 96 97 |
# File 'lib/fluent/plugin/out_sentry.rb', line 95 def type @type end |
Instance Method Details
#to_hash ⇒ Object
106 107 108 109 110 |
# File 'lib/fluent/plugin/out_sentry.rb', line 106 def to_hash data = super data[:stacktrace] = data[:stacktrace].to_hash if data[:stacktrace] data end |