Package org.globus.ftp.exception
Class ServerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.globus.ftp.exception.FTPException
org.globus.ftp.exception.ServerException
- All Implemented Interfaces:
Serializable
Indicates that operation failed because of conditions
on the server, independent from the client. For instance,
the server did not understand command, or could not read file.
Note that here "server" can mean either a remote server,
or the local internal server (FTPServerFacade).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
static final int
static final int
static final int
Server refused performing the requeststatic final int
static final int
The communication from the server was not understood, possibly because of incompatible protocol.Fields inherited from class org.globus.ftp.exception.FTPException
cause, code, UNSPECIFIED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerException
static ServerException
embedFTPReplyParseException
(FTPReplyParseException rpe, String message) Constructs server exception with FTPReplyParseException nested in it.static ServerException
static ServerException
embedUnexpectedReplyCodeException
(UnexpectedReplyCodeException urce, String message) Constructs server exception with UnexpectedReplyCodeException nested in it.getCodeExplanation
(int code) Methods inherited from class org.globus.ftp.exception.FTPException
getCode, getCustomMessage, getMessage, getRootCause, printStackTrace, printStackTrace, printStackTrace, setCode, setCustomMessage, setRootCause, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
Field Details
-
SERVER_REFUSED
public static final int SERVER_REFUSEDServer refused performing the request- See Also:
-
WRONG_PROTOCOL
public static final int WRONG_PROTOCOLThe communication from the server was not understood, possibly because of incompatible protocol.- See Also:
-
UNSUPPORTED_FEATURE
public static final int UNSUPPORTED_FEATURE- See Also:
-
REPLY_TIMEOUT
public static final int REPLY_TIMEOUT- See Also:
-
PREVIOUS_TRANSFER_ACTIVE
public static final int PREVIOUS_TRANSFER_ACTIVE- See Also:
-
customMessage
-
-
Constructor Details
-
ServerException
-
ServerException
public ServerException(int code)
-
-
Method Details
-
getCodeExplanation
- Overrides:
getCodeExplanation
in classFTPException
-
embedFTPReplyParseException
public static ServerException embedFTPReplyParseException(FTPReplyParseException rpe, String message) Constructs server exception with FTPReplyParseException nested in it. -
embedFTPReplyParseException
-
embedUnexpectedReplyCodeException
public static ServerException embedUnexpectedReplyCodeException(UnexpectedReplyCodeException urce, String message) Constructs server exception with UnexpectedReplyCodeException nested in it. -
embedUnexpectedReplyCodeException
-