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โ
Returnsโ
ApplicationError
Overridesโ
Error.constructor
Propertiesโ
codeโ
readonlycode:string
Defined in: shared/utils/errorHandling.ts:106
Machine-readable error code.
operationโ
readonlyoperation:string|undefined
Defined in: shared/utils/errorHandling.ts:109
Identifier of the operation that produced the error.
detailsโ
readonlydetails:Readonly<Record<string,unknown>> |undefined
Defined in: shared/utils/errorHandling.ts:112
Structured diagnostic metadata.
causeโ
readonlycause:unknown
Defined in: shared/utils/errorHandling.ts:115
Underlying cause of the error chain.
Overridesโ
Error.cause