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.
81 82 83 84 85 86 87 88 |
# File 'lib/esse/errors.rb', line 81 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 |