|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--gnu.inet.ftp.ServerResponseException
| Constructor Summary | |
ServerResponseException(java.lang.String str)
basic constructor. |
|
| Method Summary | |
long |
getCode()
get the server response code. |
java.lang.String |
getMessage()
get the server message. |
java.lang.String |
toString()
get a string representing this ServerResponseException |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ServerResponseException(java.lang.String str)
str - the server error message in the form| Method Detail |
public long getCode()
throws java.lang.NumberFormatException
java.lang.NumberFormatException - the first 3 characters of the message are not a number as they should be in a normal server responsepublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String toString()
toString in class java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||