MCPcopy Index your code
hub / github.com/cockroachdb/errors / EncodeError

Function EncodeError

errbase_api.go:40–40  ·  view source on GitHub ↗

EncodeError encodes an error.

(ctx context.Context, err error)

Source from the content-addressed store, hash-verified

38
39// EncodeError encodes an error.
40func EncodeError(ctx context.Context, err error) EncodedError { return errbase.EncodeError(ctx, err) }
41
42// DecodeError decodes an error.
43func DecodeError(ctx context.Context, enc EncodedError) error { return errbase.DecodeError(ctx, enc) }

Callers 3

UnaryServerInterceptorFunction · 0.92
TestGrpcFunction · 0.92
TestHTTPFunction · 0.92

Calls 1

EncodeErrorFunction · 0.92

Tested by 2

TestGrpcFunction · 0.74
TestHTTPFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…