|
|||||||||||
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.ibm.itim.exception.ITIMException | +--com.ibm.itim.apps.ApplicationException
This exception is thrown when application-level errors occur such as the violation of business rules. An ApplicationException is distinguished by its error code. A localized message describing the error code can be retrieved through the getMessage() method.
If the error causing an ApplicationException is provided in the constructor, then it will be inserted into the stack trace.
Constructor Summary | |
---|---|
ApplicationException(java.lang.String errCode)
Constructs an ApplicationException with an error code. |
|
ApplicationException(java.lang.String errCode,
java.lang.Object[] tokens)
Constructs an ApplicationException with an error code and message tokens. |
|
ApplicationException(java.lang.String errCode,
java.lang.Object[] tokens,
java.lang.Throwable cause)
Constructs with an error code and the cause exception. |
|
ApplicationException(java.lang.String errCode,
java.lang.String exMsg)
Constructs with an error code and an extra message string. |
|
ApplicationException(java.lang.String errCode,
java.lang.Throwable cause)
Constructs with an error code and the cause exception. |
Method Summary | |
---|---|
java.lang.String |
getErrorCode()
Returns the error code. |
java.lang.String |
getExtraMessage()
Returns the first token in the tokens array used to construct this ApplicationException, (i.e., tokens[0].toString()) or null if no tokens are present. |
Methods inherited from class com.ibm.itim.exception.ITIMException |
---|
getLocalizedMessage, getMessage, getMessage, getMessageId, getThrowable, getTokens, normalize, toXML |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ApplicationException(java.lang.String errCode)
errCode
- Code for the error.public ApplicationException(java.lang.String errCode, java.lang.Object[] tokens)
errCode
- Error code identifying the problem.tokens
- Object[] containing string values for replaceable tokens
in the message bundle string.public ApplicationException(java.lang.String errCode, java.lang.String exMsg)
errCode
- Error code identifying the problem.exMsg
- Additional information in a String.public ApplicationException(java.lang.String errCode, java.lang.Throwable cause)
errCode
- Error code identifying the problem.cause
- Throwable representing the exception causing this exception.public ApplicationException(java.lang.String errCode, java.lang.Object[] tokens, java.lang.Throwable cause)
errCode
- Error code identifying the problem.tokens
- Object[] containing string values for replaceable tokens
in the message bundle string.cause
- Throwable representing the exception causing this exception.Method Detail |
public java.lang.String getErrorCode()
public java.lang.String getExtraMessage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |