Exception: Omnes::AlreadyRegisteredEventError

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

Overview

Raised when trying to register the same event name a second time

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_name:, registration:) ⇒ AlreadyRegisteredEventError

Returns a new instance of AlreadyRegisteredEventError.



63
64
65
66
67
# File 'lib/omnes/errors.rb', line 63

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

Instance Attribute Details

#event_nameObject (readonly)

Returns the value of attribute event_name.



61
62
63
# File 'lib/omnes/errors.rb', line 61

def event_name
  @event_name
end

#registrationObject (readonly)

Returns the value of attribute registration.



61
62
63
# File 'lib/omnes/errors.rb', line 61

def registration
  @registration
end