|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.servlet.jsp.JspException
atg.svc.exception.SvcException
public class SvcException
Base error class for all ATG Service exceptions. Extends JspException so it will be handled by the JSP engine if thrown that far. Implements ContainableException interface. 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.
ContainerException
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
SvcException()
Constructs a new SvcException. |
|
SvcException(java.lang.String pStr)
Constructs a new SvcException with the given explanation. |
|
SvcException(java.lang.String pStr,
java.lang.Throwable pSourceException)
Constructs a new SvcException with the given explanation. |
|
SvcException(java.lang.Throwable pSourceException)
Constructs a new SvcException. |
Method Summary | |
---|---|
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 |
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 javax.servlet.jsp.JspException |
---|
getRootCause |
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 final java.lang.String CLASS_VERSION
Constructor Detail |
---|
public SvcException()
public SvcException(java.lang.String pStr)
public SvcException(java.lang.Throwable pSourceException)
pSourceException
- the initial exception which was the root
cause of the problempublic SvcException(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 atg.core.exception.ContainableException
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 |