Class: Mongoid::Sadstory::Errors::AttributeAssignmentError
- Inherits:
-
Errors::MongoidError
- Object
- Errors::MongoidError
- Mongoid::Sadstory::Errors::AttributeAssignmentError
- Defined in:
- lib/mongoid/sadstory.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
Instance Method Summary collapse
-
#initialize(message, exception, attribute) ⇒ AttributeAssignmentError
constructor
A new instance of AttributeAssignmentError.
Constructor Details
#initialize(message, exception, attribute) ⇒ AttributeAssignmentError
Returns a new instance of AttributeAssignmentError.
19 20 21 22 23 |
# File 'lib/mongoid/sadstory.rb', line 19 def initialize(, exception, attribute) @exception = exception @attribute = attribute @message = end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
17 18 19 |
# File 'lib/mongoid/sadstory.rb', line 17 def attribute @attribute end |
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
17 18 19 |
# File 'lib/mongoid/sadstory.rb', line 17 def exception @exception end |