Exception: Reaction::AttributeError
- Inherits:
-
StandardError
- Object
- StandardError
- Reaction::AttributeError
- Defined in:
- lib/reaction/errors/attribute_error.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(attribute, message = nil) ⇒ AttributeError
constructor
A new instance of AttributeError.
Constructor Details
#initialize(attribute, message = nil) ⇒ AttributeError
Returns a new instance of AttributeError.
6 7 8 9 |
# File 'lib/reaction/errors/attribute_error.rb', line 6 def initialize(attribute, = nil) @attribute = attribute @message = || "Missing value for attribute: #{attribute}." end |
Instance Attribute Details
#attribute ⇒ Object
Returns the value of attribute attribute.
3 4 5 |
# File 'lib/reaction/errors/attribute_error.rb', line 3 def attribute @attribute end |
#message ⇒ Object
Returns the value of attribute message.
4 5 6 |
# File 'lib/reaction/errors/attribute_error.rb', line 4 def @message end |