Skip to main content

Class: ApplicationError

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

Application-level error that decorates a cause with operation metadata.

Remarksโ€‹

Normalizes the provided cause to ensure consistent error chaining and keeps diagnostic metadata immutable for safe logging.

Extendsโ€‹

Constructorsโ€‹

Constructorโ€‹

new ApplicationError(options: ApplicationErrorOptions): ApplicationError

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

Parametersโ€‹

optionsโ€‹

ApplicationErrorOptions

Returnsโ€‹

ApplicationError

Overridesโ€‹

Error.constructor

Propertiesโ€‹

codeโ€‹

readonly code: string

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

Machine-readable error code.


operationโ€‹

readonly operation: string | undefined

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

Identifier of the operation that produced the error.


detailsโ€‹

readonly details: Readonly<Record<string, unknown>> | undefined

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

Structured diagnostic metadata.


causeโ€‹

readonly cause: unknown

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

Underlying cause of the error chain.

Overridesโ€‹

Error.cause