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)
| 97 | // wrappers that have not been registered will be decoded using the |
| 98 | // opaqueWrapper type. |
| 99 | func 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…