Exception: Sequent::Core::EventPublisher::PublishEventError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Sequent::Core::EventPublisher::PublishEventError
- Defined in:
- lib/sequent/core/event_publisher.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#event_handler_class ⇒ Object
readonly
Returns the value of attribute event_handler_class.
Instance Method Summary collapse
-
#initialize(event_handler_class, event) ⇒ PublishEventError
constructor
A new instance of PublishEventError.
- #message ⇒ Object
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
#event ⇒ Object (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_class ⇒ Object (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
#message ⇒ Object
25 26 27 |
# File 'lib/sequent/core/event_publisher.rb', line 25 def "Event Handler: #{@event_handler_class.inspect}\nEvent: #{@event.inspect}\nCause: #{cause.inspect}" end |