Exception: Ripple::PropertyTypeMismatch

Inherits:
StandardError
  • Object
show all
Includes:
Translation
Defined in:
ripple/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

Methods included from Riak::Util::Translation

#i18n_scope, #t

Constructor Details

- (PropertyTypeMismatch) initialize(klass, value)

A new instance of PropertyTypeMismatch



22
23
24
# File 'ripple/lib/ripple/property_type_mismatch.rb', line 22

def initialize(klass, value)
  super t("property_type_mismatch", :class => klass, :value => value.inspect)
end