-
- All Implemented Interfaces:
-
java.io.Serializable
public class AggregateException extends Exception
Copyright 2017 Meniga Iceland Inc.
Aggregates multiple
{@code Throwable}
s that may be thrown in the process of a task's execution.
-
-
Field Summary
Fields Modifier and Type Field Description private List<Throwable>
innerThrowables
-
Constructor Summary
Constructors Constructor Description AggregateException(String detailMessage, Array<Throwable> innerThrowables)
Constructs a new {@code AggregateException}
with the current stack trace, the specified detailmessage and with references to the inner throwables that are the cause of this exception.AggregateException(String detailMessage, List<out Throwable> innerThrowables)
Constructs a new {@code AggregateException}
with the current stack trace, the specified detailmessage and with references to the inner throwables that are the cause of this exception.AggregateException(List<out Throwable> innerThrowables)
Constructs a new {@code AggregateException}
with the current stack trace and with references tothe inner throwables that are the cause of this exception.
-
Method Summary
Modifier and Type Method Description void
printStackTrace(PrintStream err)
void
printStackTrace(PrintWriter err)
List<Exception>
getErrors()
Array<Throwable>
getCauses()
List<Throwable>
getInnerThrowables()
Returns a read-only List of the Throwable instances that caused the currentexception. -
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AggregateException
AggregateException(String detailMessage, Array<Throwable> innerThrowables)
Constructs a new{@code AggregateException}
with the current stack trace, the specified detailmessage and with references to the inner throwables that are the cause of this exception.- Parameters:
detailMessage
- The detail message for this exception.innerThrowables
- The exceptions that are the cause of the current exception.
-
AggregateException
AggregateException(String detailMessage, List<out Throwable> innerThrowables)
Constructs a new{@code AggregateException}
with the current stack trace, the specified detailmessage and with references to the inner throwables that are the cause of this exception.- Parameters:
detailMessage
- The detail message for this exception.innerThrowables
- The exceptions that are the cause of the current exception.
-
AggregateException
AggregateException(List<out Throwable> innerThrowables)
Constructs a new{@code AggregateException}
with the current stack trace and with references tothe inner throwables that are the cause of this exception.- Parameters:
innerThrowables
- The exceptions that are the cause of the current exception.
-
-
Method Detail
-
printStackTrace
void printStackTrace(PrintStream err)
-
printStackTrace
void printStackTrace(PrintWriter err)
-
getErrors
@Deprecated() List<Exception> getErrors()
-
getCauses
@Deprecated() Array<Throwable> getCauses()
-
getInnerThrowables
List<Throwable> getInnerThrowables()
-
-
-
-