Exception: Hashie::CoercionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hashie/extensions/coercion.rb

Instance Method Summary collapse

Constructor Details

#initialize(key, value, into, message) ⇒ CoercionError

Returns a new instance of CoercionError.



3
4
5
# File 'lib/hashie/extensions/coercion.rb', line 3

def initialize(key, value, into, message)
  super("Cannot coerce property #{key.inspect} from #{value.class} to #{into}: #{message}")
end