Exception: Ripple::PropertyTypeMismatch

Inherits:
StandardError
  • Object
show all
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

Methods included from Translation

#i18n_scope

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