Class: SiteMaps::Notification::InvalidSubscriberError
- Defined in:
- lib/site_maps/notification.rb
Instance Method Summary collapse
-
#initialize(object_or_event_id) ⇒ InvalidSubscriberError
constructor
A new instance of InvalidSubscriberError.
Constructor Details
#initialize(object_or_event_id) ⇒ InvalidSubscriberError
Returns a new instance of InvalidSubscriberError.
19 20 21 22 23 24 25 26 |
# File 'lib/site_maps/notification.rb', line 19 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 |