Skip to main content

Module errors

Module errors 

Source
Expand description

Error mapping between tonic Status and AppError.

Functionsยง

app_error_to_status
Convert an AppError to a tonic tonic::Status.
error_code_to_grpc_code
Map an rskit ErrorCode to its canonical gRPC tonic::Code.
grpc_code_to_error_code
Map a gRPC tonic::Code to its canonical rskit ErrorCode.
status_to_app_error
Convert a tonic tonic::Status to an AppError.