package
0.3.0
Repository: https://github.com/pingcap/errcode.git
Documentation: pkg.go.dev

# Functions

GetCode retrieves the GRPC code for a code or its first ancestor with a GRPC code.
SetCode adds a GRPC code to the meta data of a code.
Status creates a GRPC Status object from an ErrorCode.
WrapAsGRPC constructs a value that responds as both an ErrorCode and as a GRPC status.

# Interfaces

ErrorCodeStatus is both an ErrorCode and a GRPC Status.
StatusGRPC is the interface to a GRPC status code.