21 #ifndef KINETIC_CPP_CLIENT_KINETIC_STATUS_H_
22 #define KINETIC_CPP_CLIENT_KINETIC_STATUS_H_
24 #include "kinetic/status_code.h"
36 const string& message,
37 const int64_t expected_cluster_version = 0) :
40 expected_cluster_version_(expected_cluster_version) {}
44 message_(status.message_),
45 expected_cluster_version_(status.expected_cluster_version_) {}
48 return code_ == StatusCode::OK;
51 StatusCode statusCode()
const {
55 const string& message()
const {
59 int64_t expected_cluster_version()
const {
60 return expected_cluster_version_;
65 message_ = other.message_;
66 expected_cluster_version_ = other.expected_cluster_version_;
72 int64_t expected_cluster_version_;
77 #endif // KINETIC_CPP_CLIENT_KINETIC_STATUS_H_
Indicates whether a Kinetic operation (get, put, security, etc) put succeeded or failed. Unlike Status it provides details like whether the failure resulted from a version or an HMAC error.