Secure FTP Factory

com.jscape.inet.sftp
Class SftpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.jscape.inet.sftp.SftpException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
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
 

Constructor Detail

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 message
exception - The exception which caused this exception
Method Detail

getException

public java.lang.Exception getException()
Gets the original exception.

Returns:
The exception which caused this exception

Secure FTP Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved