15 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STATUS_H_ 16 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STATUS_H_ 18 #include "google/cloud/version.h" 56 std::ostream& operator<<(std::ostream& os,
StatusCode code);
69 : code_(status_code), message_(std::move(message)) {}
79 std::string
const&
message()
const {
return message_; }
86 inline std::ostream& operator<<(std::ostream& os,
Status const& rhs) {
bool operator==(Status const &rhs) const
#define GOOGLE_CLOUD_CPP_NS
Reports error code and details from a remote request.
Contains all the Google Cloud C++ Library APIs.
std::string StatusCodeToString(StatusCode code)
RuntimeStatusError(Status status)
Not an error; returned on success.
Status(StatusCode status_code, std::string message)
std::string const & message() const
Status const & status() const
StatusCode
Well-known status codes with grpc::StatusCode-compatible values.
bool operator!=(Status const &rhs) const