Exception: Riak::CrdtError::UnexpectedDataType

Inherits:
Riak::CrdtError show all
Defined in:
lib/riak/errors/crdt_error.rb

Instance Method Summary collapse

Methods included from Util::Translation

#i18n_scope, #t

Constructor Details

#initialize(given_type, expected_type) ⇒ UnexpectedDataType

Returns a new instance of UnexpectedDataType.



25
26
27
28
29
# File 'lib/riak/errors/crdt_error.rb', line 25

def initialize(given_type, expected_type)
  super t('crdt.unexpected_type',
          given: given_type,
          expected: expected_type)
end