Exception: PipeLineDealer::Error::InvalidAttributeValue
- Inherits:
-
InvalidAttribute
- Object
- Exception
- PipeLineDealer::Error
- InvalidAttribute
- PipeLineDealer::Error::InvalidAttributeValue
- Defined in:
- lib/pipe_line_dealer/error/invalid_attribute.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from InvalidAttribute
Attributes inherited from PipeLineDealer::Error
Instance Method Summary collapse
-
#initialize(klass, attribute_name, value) ⇒ InvalidAttributeValue
constructor
A new instance of InvalidAttributeValue.
Methods inherited from PipeLineDealer::Error
Constructor Details
#initialize(klass, attribute_name, value) ⇒ InvalidAttributeValue
Returns a new instance of InvalidAttributeValue.
22 23 24 25 26 |
# File 'lib/pipe_line_dealer/error/invalid_attribute.rb', line 22 def initialize(klass, attribute_name, value) super(klass, attribute_name) @value = value @message = "The attribute #{attribute_name.inspect} does not accept the value #{value.inspect} (on model #{klass.inspect})" end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
20 21 22 |
# File 'lib/pipe_line_dealer/error/invalid_attribute.rb', line 20 def value @value end |