|
static void | add_errs (grpc_error_handle err, char **s, size_t *sz, size_t *cap) |
|
static void | append_chr (char c, char **s, size_t *sz, size_t *cap) |
|
static void | append_esc_str (const uint8_t *str, size_t len, char **s, size_t *sz, size_t *cap) |
|
static void | append_kv (kv_pairs *kvs, char *key, char *value) |
|
static void | append_str (const char *str, char **s, size_t *sz, size_t *cap) |
|
static int | cmp_kvs (const void *a, const void *b) |
|
static void | collect_ints_kvs (grpc_error_handle err, kv_pairs *kvs) |
|
static void | collect_strs_kvs (grpc_error_handle err, kv_pairs *kvs) |
|
static void | collect_times_kvs (grpc_error_handle err, kv_pairs *kvs) |
|
static grpc_error_handle | copy_error_and_unref (grpc_error_handle in) |
|
static void | error_destroy (grpc_error_handle err) |
|
static const char * | error_int_name (grpc_error_ints key) |
|
static const char * | error_str_name (grpc_error_strs key) |
|
static const char * | error_time_name (grpc_error_times key) |
|
static char * | errs_string (grpc_error_handle err) |
|
static char * | finish_kvs (kv_pairs *kvs) |
|
static char * | fmt_int (intptr_t p) |
|
static char * | fmt_str (const grpc_slice &slice) |
|
static char * | fmt_time (gpr_timespec tm) |
|
static uint8_t | get_placement (grpc_error_handle *err, size_t size) |
|
void | grpc_disable_error_creation () |
|
void | grpc_enable_error_creation () |
|
grpc_error_handle | grpc_error_add_child (grpc_error_handle src, grpc_error_handle child) |
|
grpc_error_handle | grpc_error_create (const char *file, int line, const grpc_slice &desc, grpc_error_handle *referencing, size_t num_referencing) |
| Create an error - but use GRPC_ERROR_CREATE instead. More...
|
|
grpc_error_handle | grpc_error_do_ref (grpc_error_handle err, const char *file, int line) |
|
void | grpc_error_do_unref (grpc_error_handle err, const char *file, int line) |
|
bool | grpc_error_get_int (grpc_error_handle err, grpc_error_ints which, intptr_t *p) |
|
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. More...
|
|
grpc_error_handle | grpc_error_set_int (grpc_error_handle src, grpc_error_ints which, intptr_t value) |
|
grpc_error_handle | grpc_error_set_str (grpc_error_handle src, grpc_error_strs which, absl::string_view str) |
|
std::string | grpc_error_std_string (grpc_error_handle error) |
|
const char * | grpc_error_string (grpc_error_handle err) |
|
bool | grpc_log_error (const char *what, grpc_error_handle error, const char *file, int line) |
|
grpc_error_handle | grpc_os_error (const char *file, int line, int err, const char *call_name) |
|
static void | internal_add_error (grpc_error_handle *err, grpc_error_handle new_err) |
|
static void | internal_set_int (grpc_error_handle *err, grpc_error_ints which, intptr_t value) |
|
static void | internal_set_str (grpc_error_handle *err, grpc_error_strs which, const grpc_slice &value) |
|
static void | internal_set_time (grpc_error_handle *err, grpc_error_times which, gpr_timespec value) |
|
static char * | key_int (grpc_error_ints which) |
|
static char * | key_str (grpc_error_strs which) |
|
static char * | key_time (grpc_error_times which) |
|
static void | ref_errs (grpc_error_handle err) |
|
static void | ref_strs (grpc_error_handle err) |
|
static void | unref_errs (grpc_error_handle err) |
|
static void | unref_strs (grpc_error_handle err) |
|
Add a child error: an error that is believed to have contributed to this error occurring. Allows root causing high level errors from lower level errors that contributed to them. The src error takes ownership of the child error.
Edge Conditions - 1) If either of src or child is GRPC_ERROR_NONE, returns a reference to the other argument. 2) If both src and child are GRPC_ERROR_NONE, returns GRPC_ERROR_NONE. 3) If src and child point to the same error, returns a single reference. (Note that, 2 references should have been received to the error in this case.)
Definition at line 678 of file error.cc.