public class AggregateException extends RuntimeException
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
AggregateException.PrintStreamOrWriter
Wrapper class for PrintStream and PrintWriter to enable a single implementation of printStackTrace.
|
protected static class |
AggregateException.WrappedPrintStream |
protected static class |
AggregateException.WrappedPrintWriter |
| Constructor and Description |
|---|
AggregateException(String message) |
AggregateException(String message,
List<Throwable> throwables) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Throwable cause) |
Throwable |
getCause() |
List<Throwable> |
getThrowableList() |
boolean |
isEmpty() |
protected static void |
printEnclosedStackTrace(Throwable throwable,
AggregateException.PrintStreamOrWriter stream,
StackTraceElement[] enclosingTrace,
String caption,
String prefix,
Set<Throwable> dejaVu)
Print our stack trace as an enclosed exception for the specified stack trace.
|
void |
printStackTrace(PrintStream s)
Prints this throwable and its backtrace to the specified print stream.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toStringpublic AggregateException(String message)
public void add(Throwable cause)
public boolean isEmpty()
public void printStackTrace(PrintStream s)
printStackTrace in class Throwables - PrintStream to use for outputprotected static void printEnclosedStackTrace(Throwable throwable, AggregateException.PrintStreamOrWriter stream, StackTraceElement[] enclosingTrace, String caption, String prefix, Set<Throwable> dejaVu)
throwable - the throwable to be printed/dived-intostream - the output stream to write toenclosingTrace - from the previous exception instancecaption - to specify the stack trace contextprefix - line formatting prefixdejaVu - to detect circular referencesCopyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.