@levimc-lse/scaffold
Version:
A utility for assisting in the development of Legacy Script Engine plugins.
25 lines (24 loc) • 1.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RemoteSSHConnectionError = void 0;
class RemoteSSHConnectionError extends Error {
constructor(leviLaminaServer) {
const message = `Could not connect to ${leviLaminaServer.getRemoteAddress(true)}.`;
super(message);
this.msg = message;
}
getMessage() {
return this.msg;
}
getSuggestion() {
const suggestion = new Array();
suggestion.push("Ensure the SSH connection is working.");
suggestion.push("Ensure the SSH connection is not blocked by a firewall.");
suggestion.push("Ensure the SSH connection is not blocked by a proxy.");
suggestion.push("Ensure the SSH connection is not blocked by a VPN.");
suggestion.push("Ensure the SSH connection is not blocked by a NAT.");
suggestion.push("Ensure the SSH username and password are correct.");
return suggestion;
}
}
exports.RemoteSSHConnectionError = RemoteSSHConnectionError;