@applitools/eyes
Version:
18 lines (15 loc) • 731 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EyesNotOpenError = void 0;
const EyesError_1 = require("./EyesError");
class EyesNotOpenError extends EyesError_1.EyesError {
constructor(methodName) {
const message = `Cannot perform ${methodName} because the Eyes instance is not opened. Please ensure you call \`eyes.open()\` with valid parameters before invoking this method.
Check the following:
- Verify that \`eyes.open()\` is called in your test flow.
- Ensure the \`open\` call includes required parameters (e.g., appName, testName).
For more details, refer to the Applitools SDK documentation.`;
super(message);
}
}
exports.EyesNotOpenError = EyesNotOpenError;