UNPKG

node-ssh-plus

Version:

Enhance functionality in the node-ssh library by providing common function implementations

42 lines (36 loc) 853 B
class SSHClientError extends Error { constructor(error) { super(error.message) this.name = this.constructor.name this.internalError = error if (Error.captureStackTrace) { Error.captureStackTrace(this, this.constructor) } } } class ReconnectError extends SSHClientError { constructor(error) { super(error) } } class MaxRetriesExceededError extends SSHClientError { constructor(error) { super(error) } } class ConnectError extends SSHClientError { constructor(error) { super(error) } } class AsyncFunctionError extends SSHClientError { constructor(error) { super(error) } } module.exports = { ReconnectError, MaxRetriesExceededError, ConnectError, AsyncFunctionError }