@elsikora/cladi
Version:
Zero-dependency TypeScript DI toolkit with typed tokens and scoped lifecycles.
23 lines • 576 B
TypeScript
/**
* Base options interface.
* @see {@link https://elsikora.com/docs/cladi/core-concepts/error-handling}
*/
export interface IBaseErrorOptions {
/**
* Original error that caused this error, if any.
*/
cause?: Error;
/**
* Error code for programmatic handling.
*/
code: string;
/**
* Additional context about the error.
*/
context?: Record<string, unknown>;
/**
* Source identifier (e.g. "[AuthService]", "[UserRepository]").
*/
source?: string;
}
//# sourceMappingURL=error-options.interface.d.ts.map