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)
| 174 | // that have not been registered will be encoded using the |
| 175 | // opaqueWrapper type. |
| 176 | func 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…