|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xins.server.ResultCode
Abstraction of an error code returned by a function. Result codes are either generic or API-specific.
Result codes do not automatically apply to all functions of an API if they have been defined for that API. Instead they are associated with each individual function.
| Constructor Summary | |
ResultCode(API api,
String name,
String value)
Constructs a new ResultCode for the specified API. |
|
| Method Summary | |
String |
getName()
Returns the symbolic name of this result code. |
String |
getValue()
Returns the value of this result code. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResultCode(API api,
String name,
String value)
throws IllegalArgumentException
ResultCode for the specified API.
api - the API to which this result code belongs, not null.name - the symbolic name, can be null.value - the actual value of this code, not null.
IllegalArgumentException - if api == null || value == null.| Method Detail |
public final String getName()
null.public final String getValue()
null.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||