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.



39
40
41
42
43
# File 'lib/riak/errors/crdt_error.rb', line 39

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