public class MultiException extends HK2RuntimeException
| Constructor and Description |
|---|
MultiException()
Creates an empty MultiException
|
MultiException(java.util.List<java.lang.Throwable> th)
This list must have at least one element in it.
|
MultiException(java.lang.Throwable th)
This allows for construction of a MultiException
with one element in its list
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(java.lang.Throwable error)
Adds an error to an existing exception
|
java.util.List<java.lang.Throwable> |
getErrors()
Gets all the errors associated with this MultiException
|
java.lang.String |
getMessage() |
void |
printStackTrace(java.io.PrintStream s) |
void |
printStackTrace(java.io.PrintWriter s) |
java.lang.String |
toString() |
public MultiException()
public MultiException(java.util.List<java.lang.Throwable> th)
th - A non-null, non-empty list of exceptionspublic MultiException(java.lang.Throwable th)
th - May not be nullpublic java.util.List<java.lang.Throwable> getErrors()
public void addError(java.lang.Throwable error)
error - The exception to addpublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream s)
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintWriter s)
printStackTrace in class java.lang.Throwablepublic java.lang.String toString()
toString in class java.lang.ThrowableCopyright © 2013 Oracle Corporation. All Rights Reserved.