|
||||||||||
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.wm.util.LocalizedException com.wm.util.ServerException com.wm.app.b2b.server.ServiceException com.wm.app.tn.err.WrappedException
public class WrappedException
An exception that wraps other exceptions. It maintains an internal list of wrapped exceptions, and allows you to iterate over them. Smart enough to "unwrap" SQLExceptions, and handy for not losing error information. The iteration functionality is NOT thread-safe.
Field Summary |
---|
Fields inherited from class com.wm.util.ServerException |
---|
ALARM, QUIET |
Fields inherited from interface com.wm.util.SpecifiedLocale |
---|
NULL_LOCALE |
Constructor Summary | |
---|---|
WrappedException()
Create a WrappedException (starts with no wrapped exceptions) |
|
WrappedException(java.lang.String msg)
Create a WrappedException with the supplied message (starts with no wrapped exception) |
Method Summary | |
---|---|
void |
addException(java.lang.Exception e)
Add an exception to the list of wrapped exceptions (If the supplied exception is a java.sql.SQLException, all its chained exceptions will be unwrapped and added to the list of wrapped exceptions) |
void |
addExceptions(java.util.Enumeration e)
Adds a number of exceptions to the list of wrapped exceptions |
java.lang.Exception |
firstException()
|
java.lang.String |
getMessage()
|
java.lang.Exception |
nextException()
|
void |
printStackTrace()
Print the stack trace of this exception (including all wrapped exceptions) to System.err |
void |
printStackTrace(java.io.PrintStream p)
Print the stack trace of this exception (including all wrapped exceptions) to the supplied PrintStream |
void |
printStackTrace(java.io.PrintWriter p)
Print the stack trace of this exception (including all wrapped exceptions) to the supplied PrintWriter |
Methods inherited from class com.wm.util.ServerException |
---|
getSeverity, setSeverity |
Methods inherited from class com.wm.util.LocalizedException |
---|
getErrorDetails, getInfo, getLocalizedMessage, getLocalizedMessage, getMsgId, getMsgOnly, getMsgOnly, getWrappedException, setErrorDetails |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WrappedException()
public WrappedException(java.lang.String msg)
Method Detail |
---|
public void addException(java.lang.Exception e)
public void addExceptions(java.util.Enumeration e)
public java.lang.Exception firstException()
public java.lang.Exception nextException()
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream p)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter p)
printStackTrace
in class java.lang.Throwable
public java.lang.String getMessage()
getMessage
in class com.wm.util.ServerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |