Class: ApplicationError
Defined in: shared/utils/errorHandling.ts:162
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:175
Parametersโ
optionsโ
Returnsโ
ApplicationError
Overridesโ
Error.constructor;
Propertiesโ
codeโ
readonly code: string;
Defined in: shared/utils/errorHandling.ts:164
Machine-readable error code.
operationโ
readonly operation: string | undefined;
Defined in: shared/utils/errorHandling.ts:167
Identifier of the operation that produced the error.
detailsโ
readonly details:
| Readonly<UnknownRecord>
| undefined;
Defined in: shared/utils/errorHandling.ts:170
Structured diagnostic metadata.
causeโ
readonly cause: unknown;
Defined in: shared/utils/errorHandling.ts:173
Underlying cause of the error chain.
Overridesโ
Error.cause;