|
|
@ -185,6 +185,13 @@ bool grpc_error_get_str(grpc_error* error, grpc_error_strs which, |
|
|
|
/// error occurring. Allows root causing high level errors from lower level
|
|
|
|
/// error occurring. Allows root causing high level errors from lower level
|
|
|
|
/// errors that contributed to them. The src error takes ownership of the
|
|
|
|
/// errors that contributed to them. The src error takes ownership of the
|
|
|
|
/// child error.
|
|
|
|
/// child error.
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// Edge Conditions -
|
|
|
|
|
|
|
|
/// 1) If either of \a src or \a child is GRPC_ERROR_NONE, returns a reference
|
|
|
|
|
|
|
|
/// to the other argument. 2) If both \a src and \a child are GRPC_ERROR_NONE,
|
|
|
|
|
|
|
|
/// returns GRPC_ERROR_NONE. 3) If \a src and \a child point to the same error,
|
|
|
|
|
|
|
|
/// returns a single reference. (Note that, 2 references should have been
|
|
|
|
|
|
|
|
/// received to the error in this case.)
|
|
|
|
grpc_error* grpc_error_add_child(grpc_error* src, |
|
|
|
grpc_error* grpc_error_add_child(grpc_error* src, |
|
|
|
grpc_error* child) GRPC_MUST_USE_RESULT; |
|
|
|
grpc_error* child) GRPC_MUST_USE_RESULT; |
|
|
|
|
|
|
|
|
|
|
|