Exception: Riak::ProtobuffsErrorResponse

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(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