donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
17 lines • 805 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CannotDeleteRunningFlowException = void 0;
const DonobuException_1 = require("./DonobuException");
/**
* This exception is thrown if a particular flow is attempted to be deleted, but the flow is not in
* a completed state.
*/
class CannotDeleteRunningFlowException extends DonobuException_1.DonobuException {
constructor(flowId) {
super(`Cannot delete the flow '${flowId}' due to it being in a running state. Close the flow's browser window to end the flow first.`, undefined, // No separate internal message needed
405);
this.flowId = flowId;
}
}
exports.CannotDeleteRunningFlowException = CannotDeleteRunningFlowException;
//# sourceMappingURL=CannotDeleteRunningFlowException.js.map