UNPKG

@elsikora/cladi

Version:

Zero-dependency TypeScript DI toolkit with typed tokens and scoped lifecycles.

23 lines 591 B
/** * Standard error interface for all application errors. * @see {@link https://elsikora.com/docs/cladi/core-concepts/error-handling} */ export interface IError extends Error { /** * Original error that caused this error, if any. */ cause?: Error; /** * Error code to uniquely identify error types. */ code: string; /** * Additional context about the error. */ context?: Record<string, unknown>; /** * Source identifier where the error originated. */ source?: string; } //# sourceMappingURL=error.interface.d.ts.map