Exception: ContractedValue::Errors::InvalidAttributeValue

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/contracted_value/core.rb

Instance Method Summary collapse

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