|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSMultiException
public class OSSMultiException
This class allows to throw multiple exceptions at once for example in scenario when we need to propagate one exception even though anothe exception has occured. This class is inspired by org.mortbay.util.MultiException from Jetty distribution.
| Field Summary | |
|---|---|
protected java.util.List |
m_lstExceptions
Excpetions which should be thrown together |
| Constructor Summary | |
|---|---|
OSSMultiException()
Create new exception |
|
OSSMultiException(java.lang.String message)
Create new exception |
|
OSSMultiException(java.lang.String message,
java.lang.Throwable cause)
Create new exception |
|
OSSMultiException(java.lang.Throwable cause)
Create new exception |
|
OSSMultiException(java.lang.Throwable first,
java.lang.Throwable second)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.Throwable thr)
Add new exception which should be thrown together with others. |
java.lang.Throwable |
initCause(java.lang.Throwable thr)
|
void |
printStackTrace()
|
void |
printStackTrace(java.io.PrintStream stream)
|
void |
printStackTrace(java.io.PrintWriter writer)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List m_lstExceptions
| Constructor Detail |
|---|
public OSSMultiException()
public OSSMultiException(java.lang.String message)
message - - message to display
public OSSMultiException(java.lang.String message,
java.lang.Throwable cause)
message - - message to displaycause - - cause for errorpublic OSSMultiException(java.lang.Throwable cause)
cause - - cause for error
public OSSMultiException(java.lang.Throwable first,
java.lang.Throwable second)
first - - first exception which has occuredsecond - - second exception which has occured| Method Detail |
|---|
public void add(java.lang.Throwable thr)
thr - - new exceptionpublic java.lang.String toString()
toString in class java.lang.Throwablepublic void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream stream)
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintWriter writer)
printStackTrace in class java.lang.Throwablepublic java.lang.Throwable initCause(java.lang.Throwable thr)
initCause in class java.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||