|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.plumtree.portalpages.rest.RESTErrors
public class RESTErrors
This class manages all the REST errors to provide easy lookup and make sure that there aren't any conflicts.
| Field Summary | |
|---|---|
protected static XPHashtable |
ERRORS
This needs to be initialized before any of the specific errors are created. |
| Constructor Summary | |
|---|---|
RESTErrors()
|
|
| Method Summary | |
|---|---|
static void |
AddRestError(IRESTError _error)
Add a REST error to the global map for easy lookup and conflict checking. |
static IRESTError |
GetError(int _nCode)
Lookup a IRestError object from the error code. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final XPHashtable ERRORS
| Constructor Detail |
|---|
public RESTErrors()
| Method Detail |
|---|
public static void AddRestError(IRESTError _error)
throws XPIllegalStateException
_error - the error to add.
XPIllegalStateException - if the code is already in use.public static IRESTError GetError(int _nCode)
_nCode - the error code to lookup
XPIllegalArgumentException - if the error can not be found.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||