Exception: Omnes::InvalidEventNameError

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

Overview

Raised when trying to register an invalid event name

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_name:) ⇒ InvalidEventNameError

Returns a new instance of InvalidEventNameError.



44
45
46
47
# File 'lib/omnes/errors.rb', line 44

def initialize(event_name:)
  @event_name = event_name
  super(default_message)
end

Instance Attribute Details

#event_nameObject (readonly)

Returns the value of attribute event_name.



42
43
44
# File 'lib/omnes/errors.rb', line 42

def event_name
  @event_name
end