com.jcraft.jsch.SftpException Class Reference

This exception will be thrown if anything goes wrong while using the SFTP protocol. More...

List of all members.

Public Member Functions

 SftpException (int id, String message)
 Creates a new SftpException.

Public Attributes

int id
 The status code which caused the exception to be thrown.

Private Attributes

Throwable cause = null

Detailed Description

This exception will be thrown if anything goes wrong while using the SFTP protocol.

The exception contains an error identifier, which corresponds to the status codes used in the SFTP protocol for error messages. The following values are used directly in the source code:

SSH_FX_FAILURE
a general failure message.
SSH_FX_NO_SUCH_FILE
some file or directory was non-existant
SSH_FX_OP_UNSUPPORTED

some operation is not supported by the server But in general every SSH_FXP_STATUS status value can be thrown.

See also:
ChannelSftp
Internet Draft "SSH File Transfer Protocol" (version 02 describing version 3 of the protocol), section 7: Responses from the Server to the Client

Definition at line 53 of file SftpException.java.


Constructor & Destructor Documentation

com.jcraft.jsch.SftpException.SftpException ( int  id,
String  message 
)

Creates a new SftpException.

Parameters:
id the status code identifying the type of error.
message the error message sent by the server or generated by the client.

Definition at line 69 of file SftpException.java.


Member Data Documentation

Throwable com.jcraft.jsch.SftpException.cause = null [private]

Definition at line 61 of file SftpException.java.

The status code which caused the exception to be thrown.

Definition at line 60 of file SftpException.java.


The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1