Sha256: af6ebba466cc7e6cb54e597463dced187b32a0b9e4283a2657897a728df9e1a9
Contents?: true
Size: 619 Bytes
Versions: 18
Compression:
Stored size: 619 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc module Errors #:nodoc # Raised when trying to get or set a value for a defined field, where the # type of the object does not match the defined field type. # # Example: # # <tt>InvalidType.new(Array, "Not an Array")</tt> class InvalidType < MongoidError def initialize(klass, value) super( translate( "invalid_type", { :klass => klass.name, :other => value.class.name, :value => value.inspect } ) ) end end end end
Version data entries
18 entries across 18 versions & 3 rubygems