public class MultiException extends HK2RuntimeException
Constructor and Description |
---|
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
|
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, setStackTrace
public MultiException()
public MultiException(List<Throwable> th)
th
- 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 Throwable
public void printStackTrace(PrintStream s)
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter s)
printStackTrace
in class Throwable
Copyright © 2017 Oracle Corporation. All rights reserved.