Package com.sshtools.common.sftp
Class SftpStatusEventException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sshtools.common.events.EventException
com.sshtools.common.sftp.SftpStatusEventException
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe file handle provided was invalidstatic final intThe file cannot be resumedstatic final intThe server reported a canonical newline convention not supported by this APIstatic final intThe client sent a bad protocol messagestatic final intstatic final intstatic final intstatic final intThe file system connection was loststatic final intstatic final intstatic final intThe file or listing is EOFstatic final intGeneric failure codestatic final intThe path already existsstatic final intstatic final intstatic final intstatic final intstatic final intThe file handle provided was invalidstatic final intstatic final intstatic final intstatic final intThere is no connection to the file systemstatic final intstatic final intThere is no media available at the remote locationstatic final intstatic final intNo such file was foundstatic final intThe path is invalidstatic final intstatic final intEverything performed correctlystatic final intThe operation requested is not supportedstatic final intstatic final intThe user does not have permissionstatic final intstatic final intstatic final intCannot write to remote location -
Constructor Summary
ConstructorsConstructorDescriptionSftpStatusEventException(int status) SftpStatusEventException(int status, String msg) -
Method Summary
Modifier and TypeMethodDescriptionintGet the statusstatic StringgetStatusText(int status) Convert a SSH_FXP_STATUS code into a readable stringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
SSH_FX_OK
public static final int SSH_FX_OKEverything performed correctly- See Also:
-
SSH_FX_EOF
public static final int SSH_FX_EOFThe file or listing is EOF- See Also:
-
SSH_FX_NO_SUCH_FILE
public static final int SSH_FX_NO_SUCH_FILENo such file was found- See Also:
-
SSH_FX_PERMISSION_DENIED
public static final int SSH_FX_PERMISSION_DENIEDThe user does not have permission- See Also:
-
SSH_FX_FAILURE
public static final int SSH_FX_FAILUREGeneric failure code- See Also:
-
SSH_FX_BAD_MESSAGE
public static final int SSH_FX_BAD_MESSAGEThe client sent a bad protocol message- See Also:
-
SSH_FX_NO_CONNECTION
public static final int SSH_FX_NO_CONNECTIONThere is no connection to the file system- See Also:
-
SSH_FX_CONNECTION_LOST
public static final int SSH_FX_CONNECTION_LOSTThe file system connection was lost- See Also:
-
SSH_FX_OP_UNSUPPORTED
public static final int SSH_FX_OP_UNSUPPORTEDThe operation requested is not supported- See Also:
-
SSH_FX_INVALID_HANDLE
public static final int SSH_FX_INVALID_HANDLEThe file handle provided was invalid- See Also:
-
SSH_FX_NO_SUCH_PATH
public static final int SSH_FX_NO_SUCH_PATHThe path is invalid- See Also:
-
SSH_FX_FILE_ALREADY_EXISTS
public static final int SSH_FX_FILE_ALREADY_EXISTSThe path already exists- See Also:
-
SSH_FX_WRITE_PROTECT
public static final int SSH_FX_WRITE_PROTECTCannot write to remote location- See Also:
-
SSH_FX_NO_MEDIA
public static final int SSH_FX_NO_MEDIAThere is no media available at the remote location- See Also:
-
SSH_FX_NO_SPACE_ON_FILESYSTEM
public static final int SSH_FX_NO_SPACE_ON_FILESYSTEM- See Also:
-
SSH_FX_QUOTA_EXCEEDED
public static final int SSH_FX_QUOTA_EXCEEDED- See Also:
-
SSH_FX_UNKNOWN_PRINCIPAL
public static final int SSH_FX_UNKNOWN_PRINCIPAL- See Also:
-
SSH_FX_LOCK_CONFLICT
public static final int SSH_FX_LOCK_CONFLICT- See Also:
-
SSH_FX_DIR_NOT_EMPTY
public static final int SSH_FX_DIR_NOT_EMPTY- See Also:
-
SSH_FX_NOT_A_DIRECTORY
public static final int SSH_FX_NOT_A_DIRECTORY- See Also:
-
SSH_FX_INVALID_FILENAME
public static final int SSH_FX_INVALID_FILENAME- See Also:
-
SSH_FX_LINK_LOOP
public static final int SSH_FX_LINK_LOOP- See Also:
-
SSH_FX_CANNOT_DELETE
public static final int SSH_FX_CANNOT_DELETE- See Also:
-
SSH_FX_INVALID_PARAMETER
public static final int SSH_FX_INVALID_PARAMETER- See Also:
-
SSH_FX_FILE_IS_A_DIRECTORY
public static final int SSH_FX_FILE_IS_A_DIRECTORY- See Also:
-
SSH_FX_BYTE_RANGE_LOCK_CONFLICT
public static final int SSH_FX_BYTE_RANGE_LOCK_CONFLICT- See Also:
-
SSH_FX_BYTE_RANGE_LOCK_REFUSED
public static final int SSH_FX_BYTE_RANGE_LOCK_REFUSED- See Also:
-
SSH_FX_DELETE_PENDING
public static final int SSH_FX_DELETE_PENDING- See Also:
-
SSH_FX_FILE_CORRUPT
public static final int SSH_FX_FILE_CORRUPT- See Also:
-
SSH_FX_OWNER_INVALID
public static final int SSH_FX_OWNER_INVALID- See Also:
-
SSH_FX_GROUP_INVALID
public static final int SSH_FX_GROUP_INVALID- See Also:
-
SSH_FX_NO_MATCHING_BYTE_RANGE_LOCK
public static final int SSH_FX_NO_MATCHING_BYTE_RANGE_LOCK- See Also:
-
INVALID_HANDLE
public static final int INVALID_HANDLEThe file handle provided was invalid- See Also:
-
INVALID_RESUME_STATE
public static final int INVALID_RESUME_STATEThe file cannot be resumed- See Also:
-
INVALID_TEXT_MODE
public static final int INVALID_TEXT_MODEThe server reported a canonical newline convention not supported by this API- See Also:
-
-
Constructor Details
-
SftpStatusEventException
-
SftpStatusEventException
public SftpStatusEventException(int status)
-
-
Method Details
-
getStatus
public int getStatus()Get the status- Returns:
- int
-
getStatusText
Convert a SSH_FXP_STATUS code into a readable string- Parameters:
status-- Returns:
-