net.schmizz.sshj.common
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, ConnectionException, SCPException, SFTPException, TransportException, UserAuthException
public class SSHException
- extends IOException
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:
- Serialized Form
chainer
public static final ExceptionChainer<SSHException> chainer
SSHException
public SSHException(DisconnectReason code)
SSHException
public SSHException(DisconnectReason code,
String message)
SSHException
public SSHException(DisconnectReason code,
String message,
Throwable cause)
SSHException
public SSHException(DisconnectReason code,
Throwable cause)
SSHException
public SSHException(String message)
SSHException
public SSHException(String message,
Throwable cause)
SSHException
public SSHException(Throwable cause)
getDisconnectReason
public DisconnectReason getDisconnectReason()
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
toString
public String toString()
- Overrides:
toString
in class Throwable
Copyright © 2009-2012. All Rights Reserved.