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:
java.io.Serializable
public class ServerException extends FTPException
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringcustomMessagestatic intPREVIOUS_TRANSFER_ACTIVEstatic intREPLY_TIMEOUTstatic intSERVER_REFUSEDServer refused performing the requeststatic intUNSUPPORTED_FEATUREstatic intWRONG_PROTOCOLThe 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 Constructor Description ServerException(int code)ServerException(int code, java.lang.String message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerExceptionembedFTPReplyParseException(FTPReplyParseException rpe)static ServerExceptionembedFTPReplyParseException(FTPReplyParseException rpe, java.lang.String message)Constructs server exception with FTPReplyParseException nested in it.static ServerExceptionembedUnexpectedReplyCodeException(UnexpectedReplyCodeException urce)static ServerExceptionembedUnexpectedReplyCodeException(UnexpectedReplyCodeException urce, java.lang.String message)Constructs server exception with UnexpectedReplyCodeException nested in it.java.lang.StringgetCodeExplanation(int code)-
Methods inherited from class org.globus.ftp.exception.FTPException
getCode, getCustomMessage, getMessage, getRootCause, printStackTrace, printStackTrace, printStackTrace, setCode, setCustomMessage, setRootCause, toString
-
-
-
-
Field Detail
-
SERVER_REFUSED
public static final int SERVER_REFUSED
Server refused performing the request- See Also:
- Constant Field Values
-
WRONG_PROTOCOL
public static final int WRONG_PROTOCOL
The communication from the server was not understood, possibly because of incompatible protocol.- See Also:
- Constant Field Values
-
UNSUPPORTED_FEATURE
public static final int UNSUPPORTED_FEATURE
- See Also:
- Constant Field Values
-
REPLY_TIMEOUT
public static final int REPLY_TIMEOUT
- See Also:
- Constant Field Values
-
PREVIOUS_TRANSFER_ACTIVE
public static final int PREVIOUS_TRANSFER_ACTIVE
- See Also:
- Constant Field Values
-
customMessage
protected java.lang.String customMessage
-
-
Method Detail
-
getCodeExplanation
public java.lang.String getCodeExplanation(int code)
- Overrides:
getCodeExplanationin classFTPException
-
embedFTPReplyParseException
public static ServerException embedFTPReplyParseException(FTPReplyParseException rpe, java.lang.String message)
Constructs server exception with FTPReplyParseException nested in it.
-
embedFTPReplyParseException
public static ServerException embedFTPReplyParseException(FTPReplyParseException rpe)
-
embedUnexpectedReplyCodeException
public static ServerException embedUnexpectedReplyCodeException(UnexpectedReplyCodeException urce, java.lang.String message)
Constructs server exception with UnexpectedReplyCodeException nested in it.
-
embedUnexpectedReplyCodeException
public static ServerException embedUnexpectedReplyCodeException(UnexpectedReplyCodeException urce)
-
-