|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.myjavaworld.ftp.FTPException
public class FTPException
An exception thrown to indicate the command sent was not understood by the remote host or no action is taken because of some reason. Usually, this exception is thrown whenever the server sends a response with a response code starting with 5XX or 4XX. All responses starting with a reponse code of 5XX are permenant negative completion replies and that start with a response code of 4XX are transient negative completion replies.
| Constructor Summary | |
|---|---|
FTPException()
Constructs an FTPException object with "000" as the error
code and no descriptive message. |
|
FTPException(java.lang.String reply)
Constructs an FTPException object with the reply received
from the remote FTP host. |
|
| Method Summary | |
|---|---|
java.lang.String |
getErrorCode()
Returns the error or reply code. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FTPException()
FTPException object with "000" as the error
code and no descriptive message.
public FTPException(java.lang.String reply)
FTPException object with the reply received
from the remote FTP host. The reply will be parsed to find the reply code
and message.
reply - a permenant or transient negative completion reply from the
remote host.| Method Detail |
|---|
public java.lang.String getErrorCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||