Versions in this module Expand all Collapse all v0 v0.12.4 Jan 17, 2024 Changes in this version + func AsGRPCStatus(err error) (*status.Status, bool) + func Code(err error) codes.Code + func FromGRPC(err error) error + func StreamClientInterceptor(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, ...) (grpc.ClientStream, error) + func StreamServerInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, ...) error + func ToGRPC(ctx context.Context, err error) error + func ToRPCStatus(st *spb.Status) *rpc.Status + func UnaryClientInterceptor(ctx context.Context, method string, req, reply interface{}, ...) error + func UnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (resp interface{}, err error) + func WrapCode(err error, code codes.Code) error + type TypedError interface + ToProto func() TypedErrorProto + type TypedErrorProto interface + WrapError func(error) error