Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decoder ¶
func Decoder() errors.ConjureErrorDecoder
Decoder returns the error type registry used by the conjure-generated clients in this package to convert JSON errors to their go types. Errors are registered by their error name. Only one type can be registered per name. If an error name is not recognized, a genericError is returned with all params marked unsafe.
func RegisterErrorType ¶
RegisterErrorType registers an error name and its go type in a global registry. The type should be a struct type whose pointer implements Error. Panics if name is already registered or *type does not implement Error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.