Google APIs Client Library for C++
status.h File Reference
#include "googleapis/util/status.h"

Go to the source code of this file.

Namespaces

namespace  googleapis
 

A service request pager acts as a high level iterator for paging through results.


namespace  googleapis::client
 

namespace thread


Defines

#define STATUS_FROM_ENUM(symbol, msg)   util::Status(util::error::symbol, msg)
 Shorthand notation for creating a status from a standard util::error enum The symbol parameter is the symbolic enum name with the util::error namespace stripped from it.

Functions

util::error::Code ErrnoCodeToStatusEnum (int errno_code)
 Determine status error::Code to use from a standard Posix errno code.
util::Status StatusFromErrno (int errno_code, const StringPiece &msg="")
 Create a status from a standard Posix errno code.
util::error::Code HttpCodeToStatusEnum (int http_code)
 Determine status error::Code to use from a standard HTTP response status code.
const string HttpCodeToHttpErrorMessage (int http_code)
 Determine the standard HTTP error message for a given code.
util::Status StatusFromHttp (int http_code, const StringPiece &msg="")
 Create a status from a standard HTTP response status code.
util::Status StatusOk ()
 Creates a standard OK status.
util::Status StatusAborted (const StringPiece &msg)
 Creates a standard ABORTED status.
util::Status StatusCanceled (const StringPiece &msg)
 Creates a standard CANCELLED status.
util::Status StatusDataLoss (const StringPiece &msg)
 Creates a standard DATA_LOSS status.
util::Status StatusDeadlineExceeded (const StringPiece &msg)
 Creates a standard DEADLINE_EXCEEDED status.
util::Status StatusInternalError (const StringPiece &msg)
 Creates a standard INTERNAL status.
util::Status StatusInvalidArgument (const StringPiece &msg)
 Creates a standard INVALID_ARGUMENT status.
util::Status StatusOutOfRange (const StringPiece &msg)
 Creates a standard OUT_OF_RANGE status.
util::Status StatusPermissionDenied (const StringPiece &msg)
 Creates a standard PERMISSION_DENIED status.
util::Status StatusUnimplemented (const StringPiece &msg)
 Creates a standard UNIMPLEMENTED status.
util::Status StatusUnknown (const StringPiece &msg)
 Creates a standard UNKNOWN status.
util::Status StatusResourceExhausted (const StringPiece &msg)
 Creates a standard RESOURCE_EXHAUSTED status.
util::Status StatusFailedPrecondition (const StringPiece &msg)
 Creates a standard FAILED_PRECONDITION status.

Define Documentation

#define STATUS_FROM_ENUM (   symbol,
  msg 
)    util::Status(util::error::symbol, msg)

Shorthand notation for creating a status from a standard util::error enum The symbol parameter is the symbolic enum name with the util::error namespace stripped from it.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines