Go to the documentation of this file.
27 #include "absl/strings/string_view.h"
34 #ifndef GRPC_ERROR_IS_ABSEIL_STATUS
45 #ifdef GRPC_ERROR_IS_ABSEIL_STATUS
71 const char** error_string) {
86 if (http_error !=
nullptr) {
116 #ifdef GRPC_ERROR_IS_ABSEIL_STATUS
126 if (http_error !=
nullptr) {
146 #ifdef GRPC_ERROR_IS_ABSEIL_STATUS
182 #ifdef GRPC_ERROR_IS_ABSEIL_STATUS
std::vector< absl::Status > StatusGetChildren(absl::Status status)
Returns all children status from a status.
@ GRPC_ERROR_INT_HTTP2_ERROR
http2 error code associated with the error (see the HTTP2 RFC)
@ GRPC_ERROR_STR_DESCRIPTION
top-level textual description of this error
def c_str(s, encoding='ascii')
absl::string_view message() const
bool grpc_error_get_int(grpc_error_handle err, grpc_error_ints which, intptr_t *p)
@ GRPC_ERROR_STR_GRPC_MESSAGE
grpc status message associated with this error
grpc_http2_error_code grpc_status_to_http2_error(grpc_status_code status)
@ GRPC_HTTP2_INTERNAL_ERROR
ABSL_NAMESPACE_BEGIN class ABSL_MUST_USE_RESULT Status
grpc_error_handle absl_status_to_grpc_error(absl::Status status)
grpc_error_handle grpc_error_set_int(grpc_error_handle src, grpc_error_ints which, intptr_t value)
static grpc_error_handle recursively_find_error_with_field(grpc_error_handle error, grpc_error_ints which)
std::string grpc_error_std_string(grpc_error_handle error)
#define GRPC_ERROR_CREATE_FROM_STRING_VIEW(desc)
bool grpc_error_has_clear_grpc_status(grpc_error_handle error)
ABSL_MUST_USE_RESULT bool ok() const
bool grpc_error_is_special(grpc_error_handle err)
GPRAPI char * gpr_strdup(const char *src)
void grpc_error_get_status(grpc_error_handle error, grpc_core::Timestamp deadline, grpc_status_code *code, std::string *message, grpc_http2_error_code *http_error, const char **error_string)
static constexpr Timestamp InfFuture()
bool grpc_error_get_str(grpc_error_handle err, grpc_error_strs which, std::string *s)
Returns false if the specified string is not set.
absl::Status grpc_error_to_absl_status(grpc_error_handle error)
absl::StatusCode code() const
std::map< std::string, Node * > children
grpc_status_code grpc_http2_error_to_grpc_status(grpc_http2_error_code error, grpc_core::Timestamp deadline)
@ GRPC_ERROR_INT_GRPC_STATUS
grpc status code representing this error
#define GRPC_ERROR_IS_NONE(err)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:19