Class SSHException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
net.schmizz.sshj.common.SSHException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Buffer.BufferException, CircularBuffer.CircularBufferException, ConnectionException, SCPException, SFTPException, TransportException, UserAuthException
Most exceptions in the
net.schmizz.sshj package are instances of this class. An SSHException is
itself an IOException and can be caught like that if this level of granularity is not desired.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExceptionChainer<SSHException> private final DisconnectReason -
Constructor Summary
ConstructorsConstructorDescriptionSSHException(String message) SSHException(String message, Throwable cause) SSHException(Throwable cause) SSHException(DisconnectReason code) SSHException(DisconnectReason code, String message) SSHException(DisconnectReason code, String message, Throwable cause) SSHException(DisconnectReason code, Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
chainer
-
reason
-
-
Constructor Details
-
SSHException
-
SSHException
-
SSHException
-
SSHException
-
SSHException
-
SSHException
-
SSHException
-
-
Method Details
-
getDisconnectReason
-
getMessage
- Overrides:
getMessagein classThrowable
-
toString
-