public class RuntimeMultiException extends RuntimeException
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, toString
public RuntimeMultiException()
public RuntimeMultiException(String message)
message
- The message associated with the exception.public RuntimeMultiException(String message, Throwable t)
message
- The message associated with the exception.t
- The Throwable that causes the Exceptionpublic 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 Throwable
out
- PrintWriter to write the nested stack trace to.public void printStackTrace(PrintStream out)
printStackTrace
in class Throwable
out
- PrintStream to write the nested stack trace to.public void printStackTrace()
printStackTrace
in class Throwable
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.