Did it work? If it didn't, why?
More...
#include <status.h>
Did it work? If it didn't, why?
See grpc::StatusCode for details on the available code and their meaning.
◆ Status() [1/3]
Construct an OK instance.
◆ Status() [2/3]
grpc::Status::Status |
( |
StatusCode |
code, |
|
|
const std::string & |
error_message |
|
) |
| |
|
inline |
Construct an instance with associated code and error_message.
It is an error to construct an OK status with non-empty error_message. Note that message is intentionally accepted as a const reference instead of a value (which results in a copy instead of a move) to allow for easy transition to absl::Status in the future which accepts an absl::string_view as a parameter.
◆ Status() [3/3]
grpc::Status::Status |
( |
StatusCode |
code, |
|
|
const std::string & |
error_message, |
|
|
const std::string & |
error_details |
|
) |
| |
|
inline |
Construct an instance with code, error_message and error_details.
It is an error to construct an OK status with non-empty error_message and/or error_details.
◆ error_code()
Return the instance's error code.
◆ error_details()
std::string grpc::Status::error_details |
( |
| ) |
const |
|
inline |
Return the (binary) error details.
◆ error_message()
std::string grpc::Status::error_message |
( |
| ) |
const |
|
inline |
Return the instance's error message.
◆ IgnoreError()
void grpc::Status::IgnoreError |
( |
| ) |
const |
|
inline |
◆ ok()
bool grpc::Status::ok |
( |
| ) |
const |
|
inline |
◆ CANCELLED
const Status& grpc::Status::CANCELLED |
|
static |
A CANCELLED pre-defined instance.
◆ OK
const Status& grpc::Status::OK |
|
static |
An OK pre-defined instance.
The documentation for this class was generated from the following file: