public class MultiException extends HK2RuntimeException
| Constructor and Description |
|---|
MultiException()
Creates an empty MultiException
|
MultiException(List<Throwable> ths)
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
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(Throwable error)
Adds an error to an existing exception
|
List<Throwable> |
getErrors()
Gets all the errors associated with this MultiException
|
String |
getMessage() |
void |
printStackTrace(PrintStream s) |
void |
printStackTrace(PrintWriter s) |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTracepublic MultiException()
public MultiException(List<Throwable> ths)
ths - A non-null, non-empty list of exceptionspublic MultiException(Throwable th)
th - May not be nullpublic List<Throwable> getErrors()
public void addError(Throwable error)
error - The exception to addpublic String getMessage()
getMessage in class Throwablepublic void printStackTrace(PrintStream s)
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter s)
printStackTrace in class ThrowableCopyright © 2009-2014 Oracle Corporation. All Rights Reserved.