|
|||||||||
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.commons.util.AbstractException
public class AbstractException
Abstract base class for global exceptions. This class is the main class for all the exception. It provides several enhancements to the Java Exception clas, by providing message formating with parameters. All its constructors also have a first argument which is the root exception, which is an easy way for implementing the "exception chaining" pattern.
Constructor Summary | |
---|---|
AbstractException(java.lang.Throwable nextException)
Create a new exception. |
|
AbstractException(java.lang.Throwable nextException,
java.lang.String msg,
java.lang.Object... params)
Create a new exception. |
Method Summary | |
---|---|
static java.lang.Throwable |
getCause(java.lang.Throwable ext)
Get the exception cause. |
static java.lang.Throwable |
initCause(java.lang.Throwable ext,
java.lang.Throwable cause)
Init the exception cause. |
void |
printExtraInformation(java.io.PrintWriter err)
Print some extra information. |
static void |
printExtraInformation(java.io.PrintWriter err,
java.lang.Throwable ex)
Extended stack trace print |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractException(java.lang.Throwable nextException)
nextException
- the cause exceptionpublic AbstractException(java.lang.Throwable nextException, java.lang.String msg, java.lang.Object... params)
nextException
- the cause exceptionmsg
- the exception messageMethod Detail |
---|
public static java.lang.Throwable initCause(java.lang.Throwable ext, java.lang.Throwable cause)
nextException
- the cause exceptionmsg
- the exception messagepublic static java.lang.Throwable getCause(java.lang.Throwable ext)
nextException
- the cause exceptionmsg
- the exception messagepublic void printExtraInformation(java.io.PrintWriter err)
printExtraInformation
in interface IExceptionEx
err
- public static void printExtraInformation(java.io.PrintWriter err, java.lang.Throwable ex)
err
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |