import WarpError from "./WarpError.js";
export default class OperationPolicyTimeoutError extends WarpError {
    static CODE = 'E_OPERATION_POLICY_TIMEOUT';
    timeoutMs;
    elapsedMs;
    constructor(timeoutMs, elapsedMs) {
        super(`Operation exceeded timeout ${timeoutMs}ms after ${elapsedMs}ms`, OperationPolicyTimeoutError.CODE, { context: { timeoutMs, elapsedMs } });
        this.timeoutMs = timeoutMs;
        this.elapsedMs = elapsedMs;
    }
}
