UNPKG

donobu

Version:

Create browser automations with an LLM agent and replay them as Playwright scripts.

22 lines 1.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InvalidParamValueException = void 0; const DonobuException_1 = require("./DonobuException"); /** * This exception is thrown when a parameter has an invalid value. Unlike * IllegalArgumentException, this exception and its associated text is intended to be safe to * surface back to users, and, is guaranteed to have originated from this application's written code * (IllegalArgumentException can be thrown by libraries). */ class InvalidParamValueException extends DonobuException_1.DonobuException { constructor(paramName, paramValue, because) { super(arguments.length === 2 ? `The value '${paramValue}' is invalid for the parameter '${paramName}'.` : `The value '${paramValue}' is invalid for the parameter '${paramName}' because ${because}.`); this.paramName = paramName; this.paramValue = paramValue; this.because = because; } } exports.InvalidParamValueException = InvalidParamValueException; //# sourceMappingURL=InvalidParamValueException.js.map