tryError Documentation
Interface: ErrorHandlingOptions
Interface
Defined in: [utils.ts:17](https://github.com/oconnorjohnson/try-error/blob/e3ae0308069a4fba073f4543d527ad76373db795/src/utils.ts#L17) Options for enhanced error handling
tryError API Documentation v0.0.1-alpha.1
tryError API Documentation / ErrorHandlingOptions
Interface: ErrorHandlingOptions
Defined in: utils.ts:17
Options for enhanced error handling
Properties
context?
optional context: Record<string, unknown>;
Defined in: utils.ts:26
Additional context to include in error
errorType?
optional errorType: string;
Defined in: utils.ts:21
Custom error type to use instead of automatic detection
includeStack?
optional includeStack: boolean;
Defined in: utils.ts:36
Whether to include stack trace (defaults to true in development)
message?
optional message: string;
Defined in: utils.ts:31
Custom error message
tags?
optional tags: string[];
Defined in: utils.ts:41
Tags for categorizing errors