|
||||||||||
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 java.lang.RuntimeException com.ibm.commons.util.AbstractRuntimeException
public class AbstractRuntimeException
Abstract base class for global runtime exceptions. This class is the main class for all the runtime exception. It provides several enhancements to the Java Exception class, 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 | |
---|---|
AbstractRuntimeException(java.lang.Throwable nextException)
Create a new exception. |
|
AbstractRuntimeException(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. |
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 AbstractRuntimeException(java.lang.Throwable nextException)
nextException
- the cause exceptionpublic AbstractRuntimeException(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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |