Exception: ContractedValue::Errors::InvalidAttributeValue
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ContractedValue::Errors::InvalidAttributeValue
- Defined in:
- lib/contracted_value/core.rb
Instance Method Summary collapse
-
#initialize(key, val) ⇒ InvalidAttributeValue
constructor
A new instance of InvalidAttributeValue.
Constructor Details
#initialize(key, val) ⇒ InvalidAttributeValue
Returns a new instance of InvalidAttributeValue.
62 63 64 65 66 67 68 69 |
# File 'lib/contracted_value/core.rb', line 62 def initialize(key, val) super( <<~MSG Attribute :#{key} received invalid value: #{val.inspect} MSG ) end |