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

Function RegisterMultiCauseDecoder

errbase_api.go:99–101  ·  view source on GitHub ↗

RegisterMultiCauseDecoder can be used to register new multi-cause wrapper types to the library. Registered wrappers will be decoded using their own Go type when an error is decoded. Multi-cause wrappers that have not been registered will be decoded using the opaqueWrapper type.

(theType TypeKey, decoder MultiCauseDecoder)

Source from the content-addressed store, hash-verified

97// wrappers that have not been registered will be decoded using the
98// opaqueWrapper type.
99func RegisterMultiCauseDecoder(theType TypeKey, decoder MultiCauseDecoder) {
100 errbase.RegisterMultiCauseDecoder(theType, decoder)
101}
102
103// RegisterWrapperDecoder can be used to register new wrapper types to
104// the library. Registered wrappers will be decoded using their own

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…