public class RuntimeMultiException extends RuntimeException
| Modifier and Type | Field and Description |
|---|---|
private Collection<Throwable> |
nestedExceptions
Collection of nested exceptions.
|
private static long |
serialVersionUID
The serialVersionUID.
|
| Constructor and Description |
|---|
RuntimeMultiException()
Constructs an Exception without a message.
|
RuntimeMultiException(String message)
Constructs an Exception with a detailed message.
|
RuntimeMultiException(String message,
Throwable t)
Constructs an Exception with a detailed message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addThrowable(Throwable nested)
Add an exeception to this multiexception.
|
boolean |
isEmpty()
Tests to see if exceptions are nested within this exception.
|
Iterator<Throwable> |
listNestedExceptions()
Lists the nested exceptions that this Exception encapsulates.
|
void |
printStackTrace()
Beside printing out the standard stack trace this method prints out the
stack traces of all the nested exceptions using standard error.
|
void |
printStackTrace(PrintStream out)
Beside printing out the standard stack trace this method prints out the
stack traces of all the nested exceptions.
|
void |
printStackTrace(PrintWriter out)
Beside printing out the standard stack trace this method prints out the
stack traces of all the nested exceptions.
|
int |
size()
Gets the size (number of) exceptions nested within this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringprivate static final long serialVersionUID
private final Collection<Throwable> nestedExceptions
public RuntimeMultiException()
public RuntimeMultiException(String message)
message - The message associated with the exception.public Iterator<Throwable> listNestedExceptions()
public int size()
public boolean isEmpty()
public void addThrowable(Throwable nested)
nested - exception to add to this MultiException.public void printStackTrace(PrintWriter out)
printStackTrace in class Throwableout - PrintWriter to write the nested stack trace to.public void printStackTrace(PrintStream out)
printStackTrace in class Throwableout - PrintStream to write the nested stack trace to.public void printStackTrace()
printStackTrace in class ThrowableCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.