Class: ApplicationError
Defined in: shared/utils/errorHandling.ts:109
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.
Hierarchyโ
Extendsโ
Constructorsโ
Constructorโ
new ApplicationError(
options:ApplicationErrorOptions):ApplicationError
Defined in: shared/utils/errorHandling.ts:122
Parametersโ
optionsโ
Returnsโ
ApplicationError
Overridesโ
Error.constructor
Propertiesโ
codeโ
readonlycode:string
Defined in: shared/utils/errorHandling.ts:111
Machine-readable error code.
operationโ
readonlyoperation:string|undefined
Defined in: shared/utils/errorHandling.ts:114
Identifier of the operation that produced the error.
detailsโ
readonlydetails:Readonly<UnknownRecord> |undefined
Defined in: shared/utils/errorHandling.ts:117
Structured diagnostic metadata.
causeโ
readonlycause:unknown
Defined in: shared/utils/errorHandling.ts:120
Underlying cause of the error chain.
Overridesโ
Error.cause