Exception: Riak::ProtobuffsUnexpectedResponse

Inherits:
ProtobuffsFailedRequest show all
Defined in:
lib/riak/errors/failed_request.rb

Instance Attribute Summary

Attributes inherited from ProtobuffsFailedRequest

#code, #original_message

Instance Method Summary collapse

Methods inherited from ProtobuffsFailedRequest

#body, #is_json?, #not_found?, #server_error?

Methods included from Util::Translation

#i18n_scope, #t

Constructor Details

#initialize(code, expected) ⇒ ProtobuffsUnexpectedResponse

Returns a new instance of ProtobuffsUnexpectedResponse.



48
49
50
# File 'lib/riak/errors/failed_request.rb', line 48

def initialize(code, expected)
  super code, t('pbc.unexpected_response', expected: expected, actual: code)
end