Public Member Functions | Static Public Attributes | Private Attributes | List of all members
util::Status Class Reference

#include <status.h>

Public Member Functions

int error_code () const
std::string error_message () const
bool ok () const
bool operator!= (const Status &x) const
Statusoperator= (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_

Detailed Description

Definition at line 59 of file status.h.

Constructor & Destructor Documentation

util::Status::Status ( )

Definition at line 84 of file

util::Status::Status ( error::Code  error_code,
std::string  error_message 

Definition at line 87 of file

util::Status::Status ( const Status other)

Definition at line 94 of file

util::Status::~Status ( )

Definition at line 71 of file status.h.

Member Function Documentation

int util::Status::error_code ( ) const

Definition at line 82 of file status.h.

std::string util::Status::error_message ( ) const

Definition at line 85 of file status.h.

bool util::Status::ok ( ) const

Definition at line 79 of file status.h.

bool util::Status::operator!= ( const Status x) const

Definition at line 90 of file status.h.

Status & util::Status::operator= ( const Status x)

Definition at line 98 of file

bool util::Status::operator== ( const Status x) const

Definition at line 104 of file

std::string util::Status::ToString ( ) const

Definition at line 109 of file

Member Data Documentation

const Status util::Status::CANCELLED = Status(error::CANCELLED, "")

Definition at line 75 of file status.h.

error::Code util::Status::error_code_

Definition at line 98 of file status.h.

std::string util::Status::error_message_

Definition at line 99 of file status.h.

const Status util::Status::OK = Status()

Definition at line 74 of file status.h.

const Status util::Status::UNKNOWN = Status(error::UNKNOWN, "")

Definition at line 76 of file status.h.

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

autogenerated on Wed Jun 5 2019 21:24:09