Google Cloud C++ Client  0.4.0
C++ Client Library for Google Cloud Platform
Public Member Functions | List of all members
google::cloud::v0::Status Class Reference

Reports error code and details from a remote request. More...

#include <google/cloud/status.h>

Public Member Functions

 Status ()
 
 Status (StatusCode status_code, std::string message)
 
bool ok () const
 
bool operator== (Status const &rhs) const
 
bool operator!= (Status const &rhs) const
 
StatusCode code () const
 
std::string const & message () const
 

Detailed Description

Reports error code and details from a remote request.

This class is modeled after grpc::Status, it contains the status code and error message (if applicable) from a JSON request.

Definition at line 64 of file status.h.

Constructor & Destructor Documentation

◆ Status() [1/2]

google::cloud::v0::Status::Status ( )
inline

Definition at line 66 of file status.h.

◆ Status() [2/2]

google::cloud::v0::Status::Status ( StatusCode  status_code,
std::string  message 
)
inlineexplicit

Definition at line 68 of file status.h.

Member Function Documentation

◆ code()

StatusCode google::cloud::v0::Status::code ( ) const
inline

Definition at line 78 of file status.h.

◆ message()

std::string const& google::cloud::v0::Status::message ( ) const
inline

Definition at line 79 of file status.h.

◆ ok()

bool google::cloud::v0::Status::ok ( ) const
inline

Definition at line 71 of file status.h.

◆ operator!=()

bool google::cloud::v0::Status::operator!= ( Status const &  rhs) const
inline

Definition at line 76 of file status.h.

◆ operator==()

bool google::cloud::v0::Status::operator== ( Status const &  rhs) const
inline

Definition at line 73 of file status.h.