Exception: Ripple::PropertyTypeMismatch
- Includes:
- Translation
- Defined in:
- lib/ripple/property_type_mismatch.rb
Overview
Exception raised when the value assigned to a document property cannot be coerced into the property’s defined type.
Instance Method Summary collapse
-
#initialize(klass, value) ⇒ PropertyTypeMismatch
constructor
A new instance of PropertyTypeMismatch.
Methods included from Translation
Constructor Details
#initialize(klass, value) ⇒ PropertyTypeMismatch
Returns a new instance of PropertyTypeMismatch.
8 9 10 |
# File 'lib/ripple/property_type_mismatch.rb', line 8 def initialize(klass, value) super t("property_type_mismatch", :class => klass, :value => value.inspect) end |