Exception: Omnes::UnknownEventError
- Defined in:
- lib/omnes/errors.rb
Overview
Raised when an event name is not known
Instance Attribute Summary collapse
-
#event_name ⇒ Object
readonly
Returns the value of attribute event_name.
-
#known_events ⇒ Object
readonly
Returns the value of attribute known_events.
Instance Method Summary collapse
-
#initialize(event_name:, known_events:) ⇒ UnknownEventError
constructor
A new instance of UnknownEventError.
Constructor Details
#initialize(event_name:, known_events:) ⇒ UnknownEventError
Returns a new instance of UnknownEventError.
10 11 12 13 14 |
# File 'lib/omnes/errors.rb', line 10 def initialize(event_name:, known_events:) @event_name = event_name @known_events = known_events super() end |
Instance Attribute Details
#event_name ⇒ Object (readonly)
Returns the value of attribute event_name.
8 9 10 |
# File 'lib/omnes/errors.rb', line 8 def event_name @event_name end |
#known_events ⇒ Object (readonly)
Returns the value of attribute known_events.
8 9 10 |
# File 'lib/omnes/errors.rb', line 8 def known_events @known_events end |