Creates an instance of KindError
.
The error message.
Optional
kind: string = Errors.UnknownThe kind of error. This will be combined with
prefix
to form the name of the error, i.e. PrefixKindError.
Defaults to Errors.Unknown
.
Optional
options: Options = ...Options for constructing the error.
KindError
Readonly
causeReadonly
kindReadonly
metadataReadonly
originalReadonly
originalOptional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stackStatic
captureGenerated using TypeDoc
An error to describe detailed states and relationships.
This error type supports error taxonomies and attachment of metadata, as well as causal relationships between itself and another source error. More specific variations can be built off this to provide a payload for logging setups like Sentry or winston.