Exception: Sequent::Core::EventPublisher::PublishEventError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/sequent/core/event_publisher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_handler_class, event) ⇒ PublishEventError

Returns a new instance of PublishEventError.



19
20
21
22
23
# File 'lib/sequent/core/event_publisher.rb', line 19

def initialize(event_handler_class, event)
  super()
  @event_handler_class = event_handler_class
  @event = event
end

Instance Attribute Details

#eventObject (readonly)

Returns the value of attribute event.



17
18
19
# File 'lib/sequent/core/event_publisher.rb', line 17

def event
  @event
end

#event_handler_classObject (readonly)

Returns the value of attribute event_handler_class.



17
18
19
# File 'lib/sequent/core/event_publisher.rb', line 17

def event_handler_class
  @event_handler_class
end

Instance Method Details

#messageObject



25
26
27
# File 'lib/sequent/core/event_publisher.rb', line 25

def message
  "Event Handler: #{@event_handler_class.inspect}\nEvent: #{@event.inspect}\nCause: #{cause.inspect}"
end