require("../../_virtual/_rolldown/runtime.cjs");
let zod_v4 = require("zod/v4");
//#region src/agents/middleware/error.ts
/**
* Error thrown when the configuration for a retry middleware is invalid.
*/
var InvalidRetryConfigError = class extends Error {
	cause;
	constructor(error) {
		const message = zod_v4.z.prettifyError(error).slice(2);
		super(message);
		this.name = "InvalidRetryConfigError";
		this.cause = error;
	}
};
//#endregion
exports.InvalidRetryConfigError = InvalidRetryConfigError;

//# sourceMappingURL=error.cjs.map