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 status.cc.

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

Definition at line 87 of file status.cc.

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

Definition at line 94 of file status.cc.

util::Status::~Status ( )
inline

Definition at line 71 of file status.h.

Member Function Documentation

int util::Status::error_code ( ) const
inline

Definition at line 82 of file status.h.

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

Definition at line 85 of file status.h.

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

Definition at line 79 of file status.h.

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

Definition at line 90 of file status.h.

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

Definition at line 98 of file status.cc.

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

Definition at line 104 of file status.cc.

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

Definition at line 109 of file status.cc.

Member Data Documentation

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

Definition at line 75 of file status.h.

error::Code util::Status::error_code_
private

Definition at line 98 of file status.h.

std::string util::Status::error_message_
private

Definition at line 99 of file status.h.

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

Definition at line 74 of file status.h.

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

Definition at line 76 of file status.h.


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


gcloud_speech_utils
Author(s):
autogenerated on Wed Jun 5 2019 21:24:09