Internal
Should not be used directly.
Optional message: stringThe error message.
Optional options: BlipOptionsAn object containing options for the error.
Readonly Internal _rootFor internal use - use rootErr instead.
Readonly dataReadonly messageA message associated with the error.
''
This is designed to be public-facing.
Readonly nameName of the Error - always 'BlipError'.
Private Optional Readonly rootReadonly servertruthy when the error is a server error (status code >= 500), otherwise falsy.
Readonly stackStack trace associated with the Error.
The default is the stack trace of rootErr if provided in BlipOptions, otherwise the stack trace
of the BlipError which is automatically generated.
Readonly statusStatic Optional prepareOptional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Static stackUsed to obtain the original stack when a rootErr was provided.
(If a rootErr.stack is present, it will take the place of the BlipError stack).
Private [custom]Private
Static captureGenerated using TypeDoc
A
BlipInspectionErroris a special representation of BlipError that can be inspected by theconsoleor used in custom logging solutions.Remarks
BlipError instances can be inspected directly when using the
consolein Node.js, without the need to use.inspection. Some custom logging solutions such as Pino and Winston may omit/repeat data and require the use of.inspectionto be represented correctly. For example,rootErrmay be omitted from the logs without.inspection.