Go to the documentation of this file.
30 #include <google/protobuf/stubs/status.h>
40 namespace status_internal {
52 return "INVALID_ARGUMENT";
54 return "DEADLINE_EXCEEDED";
58 return "ALREADY_EXISTS";
60 return "PERMISSION_DENIED";
62 return "UNAUTHENTICATED";
64 return "RESOURCE_EXHAUSTED";
66 return "FAILED_PRECONDITION";
70 return "OUT_OF_RANGE";
72 return "UNIMPLEMENTED";
91 : error_code_(error_code) {
Status FailedPreconditionError(StringPiece message)
Status InvalidArgumentError(StringPiece message)
bool IsOutOfRange(const Status &status)
bool IsDeadlineExceeded(const Status &status)
bool IsUnauthenticated(const Status &status)
bool IsUnimplemented(const Status &status)
Status NotFoundError(StringPiece message)
bool IsUnavailable(const Status &status)
bool operator==(const Status &x) const
Status & operator=(const Status &x)
std::string ToString() const
bool IsInvalidArgument(const Status &status)
const std::string error_message_
Status CancelledError(StringPiece message)
bool IsAborted(const Status &status)
Status DeadlineExceededError(StringPiece message)
Status AlreadyExistsError(StringPiece message)
bool IsResourceExhausted(const Status &status)
Status UnauthenticatedError(StringPiece message)
bool IsInternal(const Status &status)
absl::string_view StatusCodeToString(grpc_status_code code)
Status UnimplementedError(StringPiece message)
Status PermissionDeniedError(StringPiece message)
Status OutOfRangeError(StringPiece message)
bool IsFailedPrecondition(const Status &status)
bool IsNotFound(const Status &status)
Status DataLossError(StringPiece message)
bool IsUnknown(const Status &status)
bool IsCancelled(const Status &status)
bool IsPermissionDenied(const Status &status)
Status UnknownError(StringPiece message)
Status UnavailableError(StringPiece message)
Status AbortedError(StringPiece message)
GRPC_CUSTOM_UTIL_STATUS Status
std::string error_message_
std::ostream & operator<<(std::ostream &os, const Status &x)
bool IsAlreadyExists(const Status &status)
Status ResourceExhaustedError(StringPiece message)
Status InternalError(StringPiece message)
absl::StatusCode code() const
bool IsDataLoss(const Status &status)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:17