Exception: UNotifier::AttributeMissingError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, attribute) ⇒ AttributeMissingError

Returns a new instance of AttributeMissingError.



17
18
19
20
21
22
# File 'lib/exceptions.rb', line 17

def initialize(key, attribute)
  @key = key
  @attribute = attribute
  message = "Missing '#{attribute}' attribute for notification '#{key}'"
  super(message)
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



15
16
17
# File 'lib/exceptions.rb', line 15

def attribute
  @attribute
end

#keyObject (readonly)

Returns the value of attribute key.



15
16
17
# File 'lib/exceptions.rb', line 15

def key
  @key
end