com.ibm.itim.apps
Class ApplicationException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.ibm.itim.exception.ITIMException
|
+--com.ibm.itim.apps.ApplicationException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- AuthenticationException, AuthorizationException, BulkException, InvalidPasswordException, PasswordRuleException, SchemaViolationException
- public class ApplicationException
- extends ITIMException
This class is used for errors that occured because of the violation of business rules
The error is distinguished by the error code. A localized message describing the
error code can be retrieved with the getMessage method.
If the error causing the exception is provided in the constructor then it
will be inserted into the stack trace.
- See Also:
- Serialized Form
Constructor Summary |
ApplicationException(java.lang.String errCode)
Constructs with an error code. |
ApplicationException(java.lang.String errCode,
java.lang.Object[] tokens)
Constructs with an error code and message tokens |
ApplicationException(java.lang.String errCode,
java.lang.Object[] tokenValues,
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 additional information (if any) in string format. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ApplicationException
public ApplicationException(java.lang.String errCode)
- Constructs with an error code.
ApplicationException
public ApplicationException(java.lang.String errCode,
java.lang.Object[] tokens)
- Constructs with an error code and message tokens
ApplicationException
public ApplicationException(java.lang.String errCode,
java.lang.String exMsg)
- Constructs with an error code and an extra message string.
- Parameters:
errCode
- Error code identifying the problem.exMsg
- Additional information in a String.
ApplicationException
public ApplicationException(java.lang.String errCode,
java.lang.Throwable cause)
- Constructs with an error code and the cause exception.
- Parameters:
errCode
- Error code identifying the problem.cause
- Throwable representing the exception causing this exception.
ApplicationException
public ApplicationException(java.lang.String errCode,
java.lang.Object[] tokenValues,
java.lang.Throwable cause)
- Constructs with an error code and the cause exception.
- Parameters:
errCode
- Error code identifying the problem.cause
- Throwable representing the exception causing this exception.tokenValues
- Object[] containing string values for replaceable tokens
in the message bundle string.
getErrorCode
public java.lang.String getErrorCode()
- Returns the error code.
getExtraMessage
public java.lang.String getExtraMessage()
- Returns the additional information (if any) in string format.