Exception: UNotifier::AttributeMissingError
- Inherits:
-
UNotifierError
- Object
- StandardError
- UNotifierError
- UNotifier::AttributeMissingError
- Defined in:
- lib/exceptions.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key, attribute) ⇒ AttributeMissingError
constructor
A new instance of AttributeMissingError.
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 = "Missing '#{attribute}' attribute for notification '#{key}'" super() end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
15 16 17 |
# File 'lib/exceptions.rb', line 15 def attribute @attribute end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
15 16 17 |
# File 'lib/exceptions.rb', line 15 def key @key end |