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

Function encodeWithSecondaryError

secondary/with_secondary.go:62–66  ·  view source on GitHub ↗
(ctx context.Context, err error)

Source from the content-addressed store, hash-verified

60func (e *withSecondaryError) Unwrap() error { return e.cause }
61
62func encodeWithSecondaryError(ctx context.Context, err error) (string, []string, proto.Message) {
63 e := err.(*withSecondaryError)
64 enc := errbase.EncodeError(ctx, e.secondaryError)
65 return "", nil, &enc
66}
67
68func decodeWithSecondaryError(
69 ctx context.Context, cause error, _ string, _ []string, payload proto.Message,

Callers

nothing calls this directly

Calls 1

EncodeErrorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…