Go to the documentation of this file.
19 #ifndef GRPCPP_IMPL_STATUS_H
20 #define GRPCPP_IMPL_STATUS_H
41 "Mismatched status code");
44 "Mismatched status code");
47 "Mismatched status code");
50 "Mismatched status code");
53 "Mismatched status code");
56 "Mismatched status code");
59 "Mismatched status code");
62 "Mismatched status code");
65 "Mismatched status code");
68 "Mismatched status code");
71 "Mismatched status code");
74 "Mismatched status code");
77 "Mismatched status code");
80 "Mismatched status code");
83 "Mismatched status code");
86 "Mismatched status code");
89 "Mismatched status code");
99 : code_(code), error_message_(error_message) {}
105 const std::string& error_details)
107 error_message_(error_message),
108 binary_error_details_(error_details) {}
134 std::string error_message_;
135 std::string binary_error_details_;
140 #endif // GRPCPP_IMPL_STATUS_H
@ UNAVAILABLE
The service is currently unavailable.
Definition: status_code_enum.h:134
@ GRPC_STATUS_UNAVAILABLE
The service is currently unavailable.
Definition: status.h:143
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:33
@ GRPC_STATUS_FAILED_PRECONDITION
Operation was rejected because the system is not in a state required for the operation's execution.
Definition: status.h:97
@ PERMISSION_DENIED
The caller does not have permission to execute the specified operation.
Definition: status_code_enum.h:64
Status()
Construct an OK instance.
Definition: status.h:37
@ GRPC_STATUS_DEADLINE_EXCEEDED
Deadline expired before operation could complete.
Definition: status.h:53
@ GRPC_STATUS_CANCELLED
The operation was cancelled (typically by the caller).
Definition: status.h:33
@ ALREADY_EXISTS
Some entity that we attempted to create (e.g., file or directory) already exists.
Definition: status_code_enum.h:57
bool ok() const
Is the status OK?
Definition: status.h:125
@ DATA_LOSS
Unrecoverable data loss or corruption.
Definition: status_code_enum.h:137
@ FAILED_PRECONDITION
Operation was rejected because the system is not in a state required for the operation's execution.
Definition: status_code_enum.h:92
@ GRPC_STATUS_OUT_OF_RANGE
Operation was attempted past the valid range.
Definition: status.h:121
@ GRPC_STATUS_INVALID_ARGUMENT
Client specified an invalid argument.
Definition: status.h:46
Did it work? If it didn't, why?
Definition: status.h:34
@ GRPC_STATUS_INTERNAL
Internal errors.
Definition: status.h:129
Status(StatusCode code, const std::string &error_message, const std::string &error_details)
Construct an instance with code, error_message and error_details.
Definition: status.h:104
@ GRPC_STATUS_DATA_LOSS
Unrecoverable data loss or corruption.
Definition: status.h:146
@ OK
Not an error; returned on success.
Definition: status_code_enum.h:28
@ GRPC_STATUS_PERMISSION_DENIED
The caller does not have permission to execute the specified operation.
Definition: status.h:68
@ GRPC_STATUS_UNIMPLEMENTED
Operation is not implemented or not supported/enabled in this service.
Definition: status.h:124
@ GRPC_STATUS_ABORTED
The operation was aborted, typically due to a concurrency issue like sequencer check failures,...
Definition: status.h:104
Status(StatusCode code, const std::string &error_message)
Construct an instance with associated code and error_message.
Definition: status.h:98
@ GRPC_STATUS_NOT_FOUND
Some requested entity (e.g., file or directory) was not found.
Definition: status.h:56
@ GRPC_STATUS_ALREADY_EXISTS
Some entity that we attempted to create (e.g., file or directory) already exists.
Definition: status.h:60
std::string error_message() const
Return the instance's error message.
Definition: status.h:119
StatusCode
Definition: status_code_enum.h:26
@ GRPC_STATUS_RESOURCE_EXHAUSTED
Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out ...
Definition: status.h:76
void IgnoreError() const
Definition: status.h:130
static const Status & CANCELLED
A CANCELLED pre-defined instance.
Definition: status.h:114
StatusCode error_code() const
Return the instance's error code.
Definition: status.h:117
@ ABORTED
The operation was aborted, typically due to a concurrency issue like sequencer check failures,...
Definition: status_code_enum.h:99
@ GRPC_STATUS_UNKNOWN
Unknown error.
Definition: status.h:40
@ DEADLINE_EXCEEDED
Deadline expired before operation could complete.
Definition: status_code_enum.h:50
static const Status & OK
An OK pre-defined instance.
Definition: status.h:112
@ UNIMPLEMENTED
Operation is not implemented or not supported/enabled in this service.
Definition: status_code_enum.h:117
@ NOT_FOUND
Some requested entity (e.g., file or directory) was not found.
Definition: status_code_enum.h:53
@ GRPC_STATUS_UNAUTHENTICATED
The request does not have valid authentication credentials for the operation.
Definition: status.h:72
@ CANCELLED
The operation was cancelled (typically by the caller).
Definition: status_code_enum.h:31
@ OUT_OF_RANGE
Operation was attempted past the valid range.
Definition: status_code_enum.h:114
@ GRPC_STATUS_OK
Not an error; returned on success.
Definition: status.h:30
@ INVALID_ARGUMENT
Client specified an invalid argument.
Definition: status_code_enum.h:43
@ UNKNOWN
Unknown error.
Definition: status_code_enum.h:37
@ RESOURCE_EXHAUSTED
Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out ...
Definition: status_code_enum.h:72
@ UNAUTHENTICATED
The request does not have valid authentication credentials for the operation.
Definition: status_code_enum.h:68
std::string error_details() const
Return the (binary) error details.
Definition: status.h:122
@ INTERNAL
Internal errors.
Definition: status_code_enum.h:121