Exception: ActiveEntity::CastError

Inherits:
Error
  • Object
show all
Defined in:
lib/active_entity/errors.rb

Class Method Summary collapse

Class Method Details

.build(type, value) ⇒ Object



6
7
8
# File 'lib/active_entity/errors.rb', line 6

def self.build(type, value)
  new("Can't type cast #{value.inspect} as #{type}")
end