|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.empireclassic.Remote.EmpireError
public class EmpireError
This class provides an abstraction of an error response from the server. In most cases the error string will be a human readable error generated by the server.
errorString| Field Summary | |
|---|---|
int |
errorNum
The error number from the server |
java.lang.String |
errorString
The error string returned by the server |
| Constructor Summary | |
|---|---|
EmpireError()
|
|
EmpireError(int errorNum,
java.lang.String errorString)
Construct an EmpireError from an error number and string |
|
EmpireError(java.lang.String response)
Parse a response string from the server and make an EmpireError out of it. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int errorNum
public java.lang.String errorString
| Constructor Detail |
|---|
public EmpireError()
public EmpireError(int errorNum,
java.lang.String errorString)
errorNum - An error codeerrorString - An error descriptionpublic EmpireError(java.lang.String response)
response - The multi-line response from the server
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||