Exception: Esse::Events::InvalidSubscriberError
- Inherits:
-
Esse::Error
- Object
- StandardError
- Esse::Error
- Esse::Events::InvalidSubscriberError
- Defined in:
- lib/esse/errors.rb
Instance Method Summary collapse
-
#initialize(object_or_event_id) ⇒ InvalidSubscriberError
constructor
private
A new instance of InvalidSubscriberError.
Constructor Details
#initialize(object_or_event_id) ⇒ InvalidSubscriberError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of InvalidSubscriberError.
94 95 96 97 98 99 100 101 |
# File 'lib/esse/errors.rb', line 94 def initialize(object_or_event_id) case object_or_event_id when String, Symbol super("you are trying to subscribe to an event: `#{object_or_event_id}` that has not been registered") else super('you try use subscriber object that will never be executed') end end |