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

Function RegisterMultiCauseEncoder

errbase_api.go:176–178  ·  view source on GitHub ↗

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

(typeName TypeKey, encoder MultiCauseEncoder)

Source from the content-addressed store, hash-verified

174// that have not been registered will be encoded using the
175// opaqueWrapper type.
176func RegisterMultiCauseEncoder(typeName TypeKey, encoder MultiCauseEncoder) {
177 errbase.RegisterMultiCauseEncoder(typeName, encoder)
178}
179
180// MultiCauseEncoder is to be provided (via RegisterMultiCauseEncoder
181// above) by additional multi-cause wrapper types not yet known to this

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…