public class SftpStatusException extends Exception
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.| Modifier and Type | Field and Description |
|---|---|
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
The path 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
There is no media available at the remote location
|
static int |
SSH_FX_NO_SUCH_FILE
No such file was found
|
static int |
SSH_FX_NO_SUCH_PATH
The path is invalid
|
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
Cannot write to remote location
|
| Constructor and Description |
|---|
SftpStatusException(int status) |
SftpStatusException(int status,
String msg) |
| Modifier and Type | Method and Description |
|---|---|
int |
getStatus()
Get the status
|
static String |
getStatusText(int status)
Convert a SSH_FXP_STATUS code into a readable string
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final int SSH_FX_OK
public static final int SSH_FX_EOF
public static final int SSH_FX_NO_SUCH_FILE
public static final int SSH_FX_PERMISSION_DENIED
public static final int SSH_FX_FAILURE
public static final int SSH_FX_BAD_MESSAGE
public static final int SSH_FX_NO_CONNECTION
public static final int SSH_FX_CONNECTION_LOST
public static final int SSH_FX_OP_UNSUPPORTED
public static final int SSH_FX_INVALID_HANDLE
public static final int SSH_FX_NO_SUCH_PATH
public static final int SSH_FX_FILE_ALREADY_EXISTS
public static final int SSH_FX_WRITE_PROTECT
public static final int SSH_FX_NO_MEDIA
public static final int INVALID_HANDLE
public static final int INVALID_RESUME_STATE
public static final int INVALID_TEXT_MODE
public SftpStatusException(int status,
String msg)
public SftpStatusException(int status)
public int getStatus()
public static String getStatusText(int status)
status - Copyright © 2013. All Rights Reserved.