#include <status.h>
Public Member Functions | |
int | error_code () const |
std::string | error_message () const |
bool | ok () const |
bool | operator!= (const Status &x) const |
Status & | operator= (const Status &x) |
bool | operator== (const Status &x) const |
Status () | |
Status (error::Code error_code, std::string error_message) | |
Status (const Status &) | |
std::string | ToString () const |
~Status () | |
Static Public Attributes | |
static const Status | CANCELLED = Status(error::CANCELLED, "") |
static const Status | OK = Status() |
static const Status | UNKNOWN = Status(error::UNKNOWN, "") |
Private Attributes | |
error::Code | error_code_ |
std::string | error_message_ |
util::Status::Status | ( | error::Code | error_code, |
std::string | error_message | ||
) |
util::Status::Status | ( | const Status & | other | ) |
util::Status::~Status | ( | ) | [inline] |
int util::Status::error_code | ( | ) | const [inline] |
std::string util::Status::error_message | ( | ) | const [inline] |
bool util::Status::ok | ( | ) | const [inline] |
bool util::Status::operator!= | ( | const Status & | x | ) | const [inline] |
std::string util::Status::ToString | ( | ) | const |
const Status util::Status::CANCELLED = Status(error::CANCELLED, "") [static] |
error::Code util::Status::error_code_ [private] |
std::string util::Status::error_message_ [private] |
const Status util::Status::OK = Status() [static] |
const Status util::Status::UNKNOWN = Status(error::UNKNOWN, "") [static] |