Creates a new BlipError.
Optional message: stringThe error message.
Optional options: BlipOptionsAn object containing options for the error.
Readonly Internal _rootFor internal use - use rootErr instead.
Readonly dataPrivate Readonly errReadonly inspectionA special representation of BlipError that can be inspected by the console
or used in custom logging solutions.
BlipInspectionError for more information and remarks.
Readonly messageA message associated with the error.
''
This is designed to be public-facing.
Readonly nameName of the Error - always 'BlipError'.
Readonly 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).
Returns the root error that caused this error, if one was provided as BlipOptions' rootErr.
Private [custom]Private
Static captureGenerated using TypeDoc
A
BlipErroris an error constructed with special considerations for HTTP clients.A
BlipErroris safe for public APIs by default. It will not expose any sensitive information used directly.See
inspection for remarks on using the error for inspection on server-side.