MCPcopy Create free account
hub / github.com/cockroachdb/errors / encodeBarrier

Function encodeBarrier

barriers/barriers.go:115–121  ·  view source on GitHub ↗

A barrier error is encoded exactly.

(
	ctx context.Context, err error,
)

Source from the content-addressed store, hash-verified

113
114// A barrier error is encoded exactly.
115func encodeBarrier(
116 ctx context.Context, err error,
117) (msg string, details []string, payload proto.Message) {
118 e := err.(*barrierErr)
119 enc := errbase.EncodeError(ctx, e.maskedErr)
120 return string(e.smsg), e.SafeDetails(), &enc
121}
122
123// A barrier error is decoded exactly.
124func decodeBarrier(ctx context.Context, msg string, _ []string, payload proto.Message) error {

Callers

nothing calls this directly

Calls 2

EncodeErrorFunction · 0.92
SafeDetailsMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…