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 }) { super("InfrastructureError", message, code, options); } }