GRPC C++  0.11.0.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Attributes
grpc::Status Class Reference

Did it work? If it didn't, why? More...

#include <status.h>

Public Member Functions

 Status ()
 Construct an OK instance. More...
 
 Status (StatusCode code, const grpc::string &details)
 Construct an instance with associated code and details (also. More...
 
StatusCode error_code () const
 Return the instance's error code. More...
 
grpc::string error_message () const
 Return the instance's error message. More...
 
bool ok () const
 Is the status OK? More...
 

Static Public Attributes

static const StatusOK = Status()
 An OK pre-defined instance. More...
 
static const StatusCANCELLED = Status(StatusCode::CANCELLED, "")
 A CANCELLED pre-defined instance. More...
 

Detailed Description

Did it work? If it didn't, why?

See grpc::StatusCode for details on the available code and their meaning.

Constructor & Destructor Documentation

grpc::Status::Status ( )
inline

Construct an OK instance.

grpc::Status::Status ( StatusCode  code,
const grpc::string details 
)
inline

Construct an instance with associated code and details (also.

Member Function Documentation

StatusCode grpc::Status::error_code ( ) const
inline

Return the instance's error code.

grpc::string grpc::Status::error_message ( ) const
inline

Return the instance's error message.

bool grpc::Status::ok ( ) const
inline

Is the status OK?

Field Documentation

const Status & grpc::Status::CANCELLED = Status(StatusCode::CANCELLED, "")
static

A CANCELLED pre-defined instance.

const Status & grpc::Status::OK = Status()
static

An OK pre-defined instance.


The documentation for this class was generated from the following files: