Sha256: b78bb9c24a0dc8d05c38dbb6dcd9c444e0af4aa5bc3f31f6159cf7bfdc123416

Contents?: true

Size: 370 Bytes

Versions: 5

Compression:

Stored size: 370 Bytes

Contents

require 'ripple/translation'

module Ripple
  # Exception raised when the value assigned to a document property
  # cannot be coerced into the property's defined type.
  class PropertyTypeMismatch < StandardError
    include Translation
    def initialize(klass, value)
      super t("property_type_mismatch", :class => klass, :value => value.inspect)
    end
  end
end

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
wyngle-ripple-0.1.0 lib/ripple/property_type_mismatch.rb
better-ripple-1.0.0 lib/ripple/property_type_mismatch.rb
ripple-1.0.0.beta2 lib/ripple/property_type_mismatch.rb
seomoz-ripple-1.0.0.pre lib/ripple/property_type_mismatch.rb
ripple-1.0.0.beta lib/ripple/property_type_mismatch.rb