|
|||||||||
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 atg.core.exception.ContainerException
public class ContainerException
An exception which contains a source exception. The printStackTrace and toString methods are overridden to display this exception's information and the original source exception. This exception functionality is useful in case you need to "transform" the source exception into a new type. Without this typically developers would use the toString value of the source exception to form the message of the new exception. This process would loose the original stack trace. This allows the original exception's stack trace to be preserved.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
ContainerException()
Constructs a new ContainerException. |
|
ContainerException(java.lang.String pStr)
Constructs a new ContainerException with the given explanation. |
|
ContainerException(java.lang.String pStr,
java.lang.Throwable pSourceException)
Constructs a new ContainerException with the given explanation. |
|
ContainerException(java.lang.Throwable pSourceException)
Constructs a new ContainerException. |
Method Summary | |
---|---|
java.lang.Object[] |
getMessageArguments()
Return property MessageArguments |
java.lang.Throwable |
getSourceException()
Returns property SourceException |
void |
printStackTrace(boolean pDisplaySource)
Print our stack trace and optionally that of the source exception if there is one. |
void |
printStackTrace(java.io.PrintStream pStream,
boolean pDisplaySource)
Print our stack trace and optionally that of the source exception if there is one. |
void |
printStackTrace(java.io.PrintWriter pWriter)
Print our stack trace and that of the source exception if there is one. |
void |
printStackTrace(java.io.PrintWriter pWriter,
boolean pDisplaySource)
Print our stack trace and optionally that of the source exception if there is one. |
void |
setMessageArguments(java.lang.Object[] pMessageArguments)
Sets the message arguments |
void |
setSourceException(java.lang.Throwable pSourceException)
Sets property SourceException |
java.lang.String |
toString()
Display information about this exception and that of the source exception if there is one. |
java.lang.String |
toString(boolean pDisplaySource)
Display information about this exception and optionally that of the source exception if there is one. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public ContainerException()
public ContainerException(java.lang.String pStr)
public ContainerException(java.lang.Throwable pSourceException)
pSourceException
- the initial exception which was the root
cause of the problempublic ContainerException(java.lang.String pStr, java.lang.Throwable pSourceException)
pSourceException
- the initial exception which was the root
cause of the problemMethod Detail |
---|
public void setSourceException(java.lang.Throwable pSourceException)
public java.lang.Throwable getSourceException()
getSourceException
in interface ContainableException
public void setMessageArguments(java.lang.Object[] pMessageArguments)
pMessageArguments
- Message arguments to setpublic java.lang.Object[] getMessageArguments()
public void printStackTrace(boolean pDisplaySource)
pDisplaySource
- if true display the source exception info toopublic void printStackTrace(java.io.PrintStream pStream, boolean pDisplaySource)
pStream
- Stream to print topDisplaySource
- if true display the source exception info toopublic void printStackTrace(java.io.PrintWriter pWriter)
printStackTrace
in class java.lang.Throwable
pWriter
- writer to print topublic void printStackTrace(java.io.PrintWriter pWriter, boolean pDisplaySource)
pWriter
- Writer to print topDisplaySource
- if true display the source exception info toopublic java.lang.String toString()
toString
in class java.lang.Throwable
public java.lang.String toString(boolean pDisplaySource)
pDisplaySource
- if true display the source exception info
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |