Exception: EventTracer::ErrorWithPayload

Inherits:
StandardError
  • Object
show all
Defined in:
lib/event_tracer/error_with_payload.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#payloadObject (readonly)

Returns the value of attribute payload.



3
4
5
# File 'lib/event_tracer/error_with_payload.rb', line 3

def payload
  @payload
end