Skip to content

Vizel API / core/src / VizelErrorOptions

Interface: VizelErrorOptions ​

Defined in: packages/core/src/utils/errorHandling.ts:51

Options accepted by the VizelError constructor.

Properties ​

cause? ​

ts
optional cause?: unknown;

Defined in: packages/core/src/utils/errorHandling.ts:57

Underlying cause, forwarded to Error's cause.


context? ​

ts
optional context?: Record<string, unknown>;

Defined in: packages/core/src/utils/errorHandling.ts:55

Free-form structured context attached to the error.


severity? ​

ts
optional severity?: VizelErrorSeverity;

Defined in: packages/core/src/utils/errorHandling.ts:53

Severity (default: "error").

Released under the MIT License.