Exception: Riak::ProtobuffsUnexpectedResponse
- Inherits:
-
ProtobuffsFailedRequest
- Object
- StandardError
- Error
- FailedRequest
- ProtobuffsFailedRequest
- Riak::ProtobuffsUnexpectedResponse
- Defined in:
- lib/riak/errors/failed_request.rb
Instance Attribute Summary
Attributes inherited from ProtobuffsFailedRequest
Instance Method Summary collapse
-
#initialize(code, expected) ⇒ ProtobuffsUnexpectedResponse
constructor
A new instance of ProtobuffsUnexpectedResponse.
Methods inherited from ProtobuffsFailedRequest
#body, #is_json?, #not_found?, #server_error?
Methods included from Util::Translation
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 |