import WarpError from "./WarpError.js";
export default class OperationPolicyExhaustedError extends WarpError {
    static CODE = 'E_OPERATION_POLICY_EXHAUSTED';
    attempts;
    constructor(attempts, cause) {
        super(`Operation policy exhausted after ${attempts} attempts`, OperationPolicyExhaustedError.CODE, { context: { attempts } });
        this.attempts = attempts;
        this.cause = cause;
    }
}
