Exception: Mistri::EventDelivery::Failure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mistri/event_delivery.rb

Overview

Tags a subscriber failure with the boundary that first observed it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original, boundary) ⇒ Failure

Returns a new instance of Failure.



10
11
12
13
14
15
# File 'lib/mistri/event_delivery.rb', line 10

def initialize(original, boundary)
  @original = original
  @boundary = boundary
  super(original.message)
  set_backtrace(original.backtrace)
end

Instance Attribute Details

#boundaryObject (readonly)

Returns the value of attribute boundary.



8
9
10
# File 'lib/mistri/event_delivery.rb', line 8

def boundary
  @boundary
end

#originalObject (readonly)

Returns the value of attribute original.



8
9
10
# File 'lib/mistri/event_delivery.rb', line 8

def original
  @original
end