Exception: Omnes::UnknownEventError

Inherits:
Error
  • Object
show all
Defined in:
lib/omnes/errors.rb

Overview

Raised when an event name is not known

Instance Attribute Summary collapse

Instance Method Summary collapse

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(default_message)
end

Instance Attribute Details

#event_nameObject (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_eventsObject (readonly)

Returns the value of attribute known_events.



8
9
10
# File 'lib/omnes/errors.rb', line 8

def known_events
  @known_events
end