FactuGES_ERP/packages/rdx-ddd/src/errors/infrastructure-error.ts

10 lines
441 B
TypeScript
Raw Normal View History

2025-10-04 15:40:41 +00:00
import { BaseError } from "./base-error";
/** Errores de infraestructura: DB, red, serialización, proveedores externos */
export class InfrastructureError extends BaseError<"infrastructure"> {
public readonly layer = "infrastructure" as const;
constructor(message: string, code = "INFRASTRUCTURE_ERROR", options?: ErrorOptions & { metadata?: Record<string, unknown> }) {
super("InfrastructureError", message, code, options);
}
}