|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class for aggregating exceptions thrown by JSAP's parsing process. This class is necessary as it is desirable to have information regarding ALL of the reasons for a failed parse rather than just the FIRST reason.
Method Summary | |
void |
addException(java.lang.String id,
java.lang.Exception exception)
Adds the specified exception to the exception map. |
java.lang.Exception |
getException(java.lang.String id)
Returns the first exception associated with the specified parameter ID. |
java.lang.Exception[] |
getExceptionArray(java.lang.String id)
Returns an array of ALL exceptions associated with the specified parameter ID. |
Method Detail |
public void addException(java.lang.String id, java.lang.Exception exception)
id
- the unique ID of the parameter with which the specified values
are associated.exception
- the exception to associate with the specified key.public java.lang.Exception getException(java.lang.String id)
id
- the unique ID of the parameter for which the first exception
is requested
public java.lang.Exception[] getExceptionArray(java.lang.String id)
id
- the unique ID of the parameter for which the exceptions are
requested.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |