|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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
- 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 | |
protected int |
code
|
protected String |
customMessage
|
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. |
| Fields inherited from class org.globus.ftp.exception.FTPException |
cause, UNSPECIFIED |
| Constructor Summary | |
ServerException(int code)
|
|
ServerException(int code,
String message)
|
|
| Method Summary | |
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)
|
| Methods inherited from class org.globus.ftp.exception.FTPException |
getCode, getCustomMessage, getMessage, getRootCause, printStackTrace, setCode, setCustomMessage, setRootCause, toString |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
SERVER_REFUSED
public static final int SERVER_REFUSED
- Server refused performing the request
WRONG_PROTOCOL
public static final int WRONG_PROTOCOL
- The communication from the server was not understood, possibly because of incompatible protocol.
UNSUPPORTED_FEATURE
public static final int UNSUPPORTED_FEATURE
REPLY_TIMEOUT
public static final int REPLY_TIMEOUT
code
protected int code
customMessage
protected String customMessage
| Constructor Detail |
ServerException
public ServerException(int code,
String message)
ServerException
public ServerException(int code)
| Method Detail |
getCodeExplanation
public String getCodeExplanation(int code)
- Overrides:
getCodeExplanationin classFTPException
embedFTPReplyParseException
public static ServerException embedFTPReplyParseException(FTPReplyParseException rpe, String message)
- Constructs server exception with FTPReplyParseException nested in it.
embedFTPReplyParseException
public static ServerException embedFTPReplyParseException(FTPReplyParseException rpe)
embedUnexpectedReplyCodeException
public static ServerException embedUnexpectedReplyCodeException(UnexpectedReplyCodeException urce, String message)
- Constructs server exception with UnexpectedReplyCodeException nested in it.
embedUnexpectedReplyCodeException
public static ServerException embedUnexpectedReplyCodeException(UnexpectedReplyCodeException urce)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||