public class ServerException extends FTPException
Modifier and Type | Field and Description |
---|---|
protected String |
customMessage |
static int |
PREVIOUS_TRANSFER_ACTIVE |
static int |
REPLY_TIMEOUT |
static int |
SERVER_REFUSED
Server refused performing the request
|
static int |
UNSUPPORTED_FEATURE |
static int |
WRONG_PROTOCOL
The communication from the server was not understood,
possibly because of incompatible protocol.
|
cause, code, UNSPECIFIED
Constructor and Description |
---|
ServerException(int code) |
ServerException(int code,
String message) |
Modifier and Type | Method and Description |
---|---|
static ServerException |
embedFTPReplyParseException(FTPReplyParseException rpe) |
static ServerException |
embedFTPReplyParseException(FTPReplyParseException rpe,
String message)
Constructs server exception with FTPReplyParseException
nested in it.
|
static ServerException |
embedUnexpectedReplyCodeException(UnexpectedReplyCodeException urce) |
static ServerException |
embedUnexpectedReplyCodeException(UnexpectedReplyCodeException urce,
String message)
Constructs server exception with UnexpectedReplyCodeException
nested in it.
|
String |
getCodeExplanation(int code) |
getCode, getCustomMessage, getMessage, getRootCause, printStackTrace, printStackTrace, printStackTrace, setCode, setCustomMessage, setRootCause, toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
public static final int SERVER_REFUSED
public static final int WRONG_PROTOCOL
public static final int UNSUPPORTED_FEATURE
public static final int REPLY_TIMEOUT
public static final int PREVIOUS_TRANSFER_ACTIVE
protected String customMessage
public ServerException(int code, String message)
public ServerException(int code)
public String getCodeExplanation(int code)
getCodeExplanation
in class FTPException
public static ServerException embedFTPReplyParseException(FTPReplyParseException rpe, String message)
public static ServerException embedFTPReplyParseException(FTPReplyParseException rpe)
public static ServerException embedUnexpectedReplyCodeException(UnexpectedReplyCodeException urce, String message)
public static ServerException embedUnexpectedReplyCodeException(UnexpectedReplyCodeException urce)
Copyright © 2016. All rights reserved.