Exception: RailsTransactionalOutbox::Monitor::UnknownEventError
- Inherits:
-
StandardError
- Object
- StandardError
- RailsTransactionalOutbox::Monitor::UnknownEventError
- Defined in:
- lib/rails_transactional_outbox/monitor.rb
Instance Method Summary collapse
-
#initialize(available_events, current_event) ⇒ UnknownEventError
constructor
A new instance of UnknownEventError.
- #message ⇒ Object
Constructor Details
#initialize(available_events, current_event) ⇒ UnknownEventError
Returns a new instance of UnknownEventError.
36 37 38 39 40 |
# File 'lib/rails_transactional_outbox/monitor.rb', line 36 def initialize(available_events, current_event) super() @available_events = available_events @current_event = current_event end |
Instance Method Details
#message ⇒ Object
42 43 44 |
# File 'lib/rails_transactional_outbox/monitor.rb', line 42 def "unknown event: #{current_event}, the available events are: #{available_events.join(", ")}" end |