Exception: EventTracer::ErrorWithPayload
- Inherits:
-
StandardError
- Object
- StandardError
- EventTracer::ErrorWithPayload
- Defined in:
- lib/event_tracer/error_with_payload.rb
Instance Attribute Summary collapse
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
Instance Method Summary collapse
-
#initialize(error, payload) ⇒ ErrorWithPayload
constructor
A new instance of ErrorWithPayload.
Constructor Details
#initialize(error, payload) ⇒ ErrorWithPayload
Returns a new instance of ErrorWithPayload.
5 6 7 8 |
# File 'lib/event_tracer/error_with_payload.rb', line 5 def initialize(error, payload) super(error) @payload = payload end |
Instance Attribute Details
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
3 4 5 |
# File 'lib/event_tracer/error_with_payload.rb', line 3 def payload @payload end |