Exception: Riak::ProtobuffsErrorResponse
- Inherits:
-
ProtobuffsFailedRequest
- Object
- StandardError
- Error
- FailedRequest
- ProtobuffsFailedRequest
- Riak::ProtobuffsErrorResponse
- Defined in:
- lib/riak/errors/failed_request.rb
Instance Attribute Summary
Attributes inherited from ProtobuffsFailedRequest
Instance Method Summary collapse
-
#initialize(payload) ⇒ ProtobuffsErrorResponse
constructor
A new instance of ProtobuffsErrorResponse.
Methods inherited from ProtobuffsFailedRequest
#body, #is_json?, #not_found?, #server_error?
Methods included from Util::Translation
Constructor Details
#initialize(payload) ⇒ ProtobuffsErrorResponse
Returns a new instance of ProtobuffsErrorResponse.
54 55 56 |
# File 'lib/riak/errors/failed_request.rb', line 54 def initialize(payload) super payload.errcode, payload.errmsg end |