com.jscape.inet.sftp
Class SftpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.jscape.inet.sftp.SftpException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- BadVersionException, RequestException, SftpAuthenticationException, SftpFileNotFoundException, SftpPermissionDeniedException
public class SftpException
- extends java.io.IOException
SftpException is thrown by many methods of the Sftp class. The methods
are masking various exception types into SftpException, but the event
message will be propagated.
- See Also:
- Serialized Form
Constructor Summary |
SftpException(java.lang.String message)
Creates a new SftpException with specified exception message. |
SftpException(java.lang.String message,
java.lang.Exception exception)
Creates a new SftpException and store the original message and exception. |
Method Summary |
java.lang.Exception |
getException()
Gets the original exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SftpException
public SftpException(java.lang.String message)
- Creates a new SftpException with specified exception message.
- Parameters:
message
- the exception message.
SftpException
public SftpException(java.lang.String message,
java.lang.Exception exception)
- Creates a new SftpException and store the original message and exception.
- Parameters:
message
- The exception messageexception
- The exception which caused this exception
getException
public java.lang.Exception getException()
- Gets the original exception.
- Returns:
- The exception which caused this exception
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved