|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.glassfish.hk2.api.MultiException
public class MultiException
This exception can contain multiple other exceptions. However, it will also have the causal chain of the first exception added to the list of exceptions
Constructor Summary | |
---|---|
MultiException()
Creates an empty MultiException |
|
MultiException(List<Throwable> th)
This list must have at least one element in it. |
|
MultiException(Throwable th)
This allows for construction of a MultiException with one element in its list |
Method Summary | |
---|---|
void |
addError(Throwable error)
Adds an error to an existing exception |
List<Throwable> |
getErrors()
Gets all the errors associated with this MultiException |
String |
toString()
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MultiException()
public MultiException(List<Throwable> th)
th
- A non-null, non-empty list of exceptionspublic MultiException(Throwable th)
th
- May not be nullMethod Detail |
---|
public List<Throwable> getErrors()
public void addError(Throwable error)
error
- The exception to addpublic String toString()
toString
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |