Skip to main content

Interface: ApplicationErrorOptions

Defined in: shared/utils/errorHandling.ts:40

Options for constructing an ApplicationError instance.

Propertiesโ€‹

cause?โ€‹

optional cause?: unknown;

Defined in: shared/utils/errorHandling.ts:42

Underlying error cause.


codeโ€‹

code: string;

Defined in: shared/utils/errorHandling.ts:44

Machine-readable error code for diagnostics.


details?โ€‹

optional details?: UnknownRecord;

Defined in: shared/utils/errorHandling.ts:46

Additional structured metadata for debugging.


messageโ€‹

message: string;

Defined in: shared/utils/errorHandling.ts:48

Human-readable error message.


operation?โ€‹

optional operation?: string;

Defined in: shared/utils/errorHandling.ts:50

Optional identifier of the operation that failed.