com.maverick.sftp
Class SftpStatusException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.maverick.sftp.SftpStatusException
All Implemented Interfaces:
java.io.Serializable

public class SftpStatusException
extends java.lang.Exception

This exception is thrown by the SftpSubsystemChannel class whenever a status message is received that is not expected. This would normally indicate a failure of the operation, for example with a no such file status being returned.

Author:
Lee David Painter
See Also:
Serialized Form

Field Summary
static int INVALID_HANDLE
          The file handle provided was invalid
static int INVALID_RESUME_STATE
          The file cannot be resumed
static int INVALID_TEXT_MODE
          The server reported a canonical newline convention not supported by this API
static int SSH_FX_BAD_MESSAGE
          The client sent a bad protocol message
static int SSH_FX_CONNECTION_LOST
          The file system connection was lost
static int SSH_FX_EOF
          The file or listing is EOF
static int SSH_FX_FAILURE
          Generic failure code
static int SSH_FX_FILE_ALREADY_EXISTS
           
static int SSH_FX_INVALID_HANDLE
          The file handle provided was invalid
static int SSH_FX_NO_CONNECTION
          There is no connection to the file system
static int SSH_FX_NO_MEDIA
           
static int SSH_FX_NO_SUCH_FILE
          No such file was found
static int SSH_FX_NO_SUCH_PATH
           
static int SSH_FX_OK
          Everything performed correctly
static int SSH_FX_OP_UNSUPPORTED
          The operation requested is not supported
static int SSH_FX_PERMISSION_DENIED
          The user does not have permission
static int SSH_FX_WRITE_PROTECT
           
 
Constructor Summary
SftpStatusException(int status)
           
SftpStatusException(int status, java.lang.String msg)
           
 
Method Summary
 int getStatus()
          Get the status
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SSH_FX_OK

public static final int SSH_FX_OK
Everything performed correctly

See Also:
Constant Field Values

SSH_FX_EOF

public static final int SSH_FX_EOF
The file or listing is EOF

See Also:
Constant Field Values

SSH_FX_NO_SUCH_FILE

public static final int SSH_FX_NO_SUCH_FILE
No such file was found

See Also:
Constant Field Values

SSH_FX_PERMISSION_DENIED

public static final int SSH_FX_PERMISSION_DENIED
The user does not have permission

See Also:
Constant Field Values

SSH_FX_FAILURE

public static final int SSH_FX_FAILURE
Generic failure code

See Also:
Constant Field Values

SSH_FX_BAD_MESSAGE

public static final int SSH_FX_BAD_MESSAGE
The client sent a bad protocol message

See Also:
Constant Field Values

SSH_FX_NO_CONNECTION

public static final int SSH_FX_NO_CONNECTION
There is no connection to the file system

See Also:
Constant Field Values

SSH_FX_CONNECTION_LOST

public static final int SSH_FX_CONNECTION_LOST
The file system connection was lost

See Also:
Constant Field Values

SSH_FX_OP_UNSUPPORTED

public static final int SSH_FX_OP_UNSUPPORTED
The operation requested is not supported

See Also:
Constant Field Values

SSH_FX_INVALID_HANDLE

public static final int SSH_FX_INVALID_HANDLE
The file handle provided was invalid

See Also:
Constant Field Values

SSH_FX_NO_SUCH_PATH

public static final int SSH_FX_NO_SUCH_PATH
See Also:
Constant Field Values

SSH_FX_FILE_ALREADY_EXISTS

public static final int SSH_FX_FILE_ALREADY_EXISTS
See Also:
Constant Field Values

SSH_FX_WRITE_PROTECT

public static final int SSH_FX_WRITE_PROTECT
See Also:
Constant Field Values

SSH_FX_NO_MEDIA

public static final int SSH_FX_NO_MEDIA
See Also:
Constant Field Values

INVALID_HANDLE

public static final int INVALID_HANDLE
The file handle provided was invalid

See Also:
Constant Field Values

INVALID_RESUME_STATE

public static final int INVALID_RESUME_STATE
The file cannot be resumed

See Also:
Constant Field Values

INVALID_TEXT_MODE

public static final int INVALID_TEXT_MODE
The server reported a canonical newline convention not supported by this API

See Also:
Constant Field Values
Constructor Detail

SftpStatusException

public SftpStatusException(int status,
                           java.lang.String msg)

SftpStatusException

public SftpStatusException(int status)
Method Detail

getStatus

public int getStatus()
Get the status

Returns:


Copyright © 2003 3SP LTD. All Rights Reserved.