Exception: UNotifier::NotificationNotFoundError

Inherits:
UNotifierError
  • Object
show all
Defined in:
lib/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ NotificationNotFoundError

Returns a new instance of NotificationNotFoundError.



39
40
41
42
43
# File 'lib/exceptions.rb', line 39

def initialize(key)
  @key = key
  message = "Notification with key '#{@key}' not found"
  super(message)
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



37
38
39
# File 'lib/exceptions.rb', line 37

def key
  @key
end