|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--com.esri.xml.sax.SAXException | +--com.esri.aims.mtier.model.axl.ErrorAndWarningException
Thrown when an ERROR or WARNING response is received.
Constructor Summary | |
ErrorAndWarningException()
Default constructor. |
Method Summary | |
void |
addError(int code,
String message)
Adds an error with given message string and code to the Exception. |
void |
addWarning(int code,
String message)
Adds an warning with given message and code to the Exception. |
boolean |
containsErrorCode(int code)
Returns true if the error code exists, false array otherwise. |
boolean |
containsErrorMessage(String message)
Returns true if the error message exists, false otherwise. |
boolean |
containsWarningCode(int code)
Returns true if the warning code exists, false otherwise. |
boolean |
containsWarningMessage(String message)
Returns true if the warning message exists, false otherwise. |
int |
getErrorCodeAt(int index)
Returns the error code at the given index. |
int |
getErrorCount()
Returns the number of errors. |
String |
getErrorMessageAt(int index)
Returns the error message at the given index. |
int |
getWarningCodeAt(int index)
Returns the warning code at the given index. |
int |
getWarningCount()
Returns the number of warnings. |
String |
getWarningMessageAt(int index)
Returns the warning message at the given index. |
boolean |
hasErrors()
Returns true if errors were found. |
boolean |
hasWarnings()
Returns true if the WARNINGs were found. |
Methods inherited from class com.esri.xml.sax.SAXException |
getException, getMessage, toString |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ErrorAndWarningException()
Method Detail |
public void addError(int code, String message)
code
- the error code being returned.message
- the error message being returned.public void addWarning(int code, String message)
code
- The warning code being returned.message
- The warning message being returned.public boolean hasErrors()
public int getErrorCount()
public int getErrorCodeAt(int index)
public String getErrorMessageAt(int index)
public boolean containsErrorCode(int code)
public boolean containsErrorMessage(String message)
public boolean hasWarnings()
public int getWarningCount()
public int getWarningCodeAt(int index)
public String getWarningMessageAt(int index)
public boolean containsWarningCode(int code)
public boolean containsWarningMessage(String message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |