Exception: Dionysus::Monitor::UnknownEventError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dionysus/monitor.rb

Instance Method Summary collapse

Constructor Details

#initialize(available_events, current_event) ⇒ UnknownEventError

Returns a new instance of UnknownEventError.



38
39
40
41
42
# File 'lib/dionysus/monitor.rb', line 38

def initialize(available_events, current_event)
  super()
  @available_events = available_events
  @current_event = current_event
end

Instance Method Details

#messageObject



44
45
46
# File 'lib/dionysus/monitor.rb', line 44

def message
  "unknown event: #{current_event}, the available events are: #{available_events.join(", ")}"
end