Exception: MongoODM::Errors::TypeCastMissing
- Inherits:
-
StandardError
- Object
- StandardError
- MongoODM::Errors::TypeCastMissing
- Defined in:
- lib/mongo_odm/errors.rb
Instance Method Summary collapse
-
#initialize(value, klass) ⇒ TypeCastMissing
constructor
A new instance of TypeCastMissing.
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 |