Exception: MongoODM::Errors::TypeCastMissing

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mongo_odm/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(value, klass) ⇒ TypeCastMissing

Returns a new instance of TypeCastMissing.



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

def initialize(value, klass)
  super "can't convert #{value.inspect} to #{klass}: Define a `type_cast' method for #{value.class}:#{value.class.class}"
end