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

Function init

join/join.go:83–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81}
82
83func init() {
84 errbase.RegisterMultiCauseEncoder(
85 errbase.GetTypeKey(&joinError{}),
86 func(
87 ctx context.Context,
88 err error,
89 ) (msg string, safeDetails []string, payload proto.Message) {
90 return "", nil, nil
91 },
92 )
93 errbase.RegisterMultiCauseDecoder(
94 errbase.GetTypeKey(&joinError{}),
95 func(
96 ctx context.Context,
97 causes []error,
98 msgPrefix string,
99 safeDetails []string,
100 payload proto.Message,
101 ) error {
102 return Join(causes...)
103 },
104 )
105}

Callers

nothing calls this directly

Calls 4

GetTypeKeyFunction · 0.92
JoinFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…