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

Struct opaqueLeaf

errbase/opaque.go:28–31  ·  view source on GitHub ↗

opaqueLeaf is used when receiving an unknown leaf type. Its important property is that if it is communicated back to some network system that _does_ know about the type, the original object can be restored.

Source from the content-addressed store, hash-verified

26// back to some network system that _does_ know about
27// the type, the original object can be restored.
28type opaqueLeaf struct {
29 msg string
30 details errorspb.EncodedErrorDetails
31}
32
33// opaqueLeafCauses is used when receiving an unknown multi-cause
34// wrapper type. Its important property is that if it is communicated

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected