Creates a Serializer.
Options for the serializer.
Private
optionsThe set of options for the serializer.
Static
defaultDefault options. Can be edited to change default options globally.
The actual serialization function.
Errors to serialize.
Optional
options: Partial<ErrorSerializerOptions<ErrorType>>Options to use at runtime.
Generated using TypeDoc
The ErrorSerializer class is used to serialize errors.
Example: