|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--st.ApplicationException
Exception class that maps codes to messages. Permits many types of errors to be reported without creating extra exception classes.
Constructor Summary | |
ApplicationException()
|
|
ApplicationException(int code)
The constructor method for the exception given an error code. |
Method Summary | |
int |
getCode()
Get the error code. |
java.lang.String |
getMessage()
Get the error message. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ApplicationException(int code)
code
- the error codepublic ApplicationException()
Method Detail |
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public int getCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |