public class AggregateException
extends java.lang.Exception
Throwable
s that may be thrown in the process of a task's execution.Constructor and Description |
---|
AggregateException(java.util.List<java.lang.Exception> errors)
Deprecated.
Please use
AggregateException(String, Throwable[]) instead. |
AggregateException(java.lang.String detailMessage,
java.lang.Throwable[] causes)
Constructs a new
AggregateException with the current stack trace, the
specified detail message and the specified causes. |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable[] |
getCauses()
Returns the causes of this
AggregateException , or null if there are no causes. |
java.util.List<java.lang.Exception> |
getErrors()
Deprecated.
Please use
getCauses() instead. |
public AggregateException(java.lang.String detailMessage, java.lang.Throwable[] causes)
AggregateException
with the current stack trace, the
specified detail message and the specified causes.
The stacktrace will show that this AggregateException
will be caused by the first
exception and all of the causes can be accessed via getCauses()
.detailMessage
- the detail message for this exception.causes
- the causes of this exception.@Deprecated public AggregateException(java.util.List<java.lang.Exception> errors)
AggregateException(String, Throwable[])
instead.@Deprecated public java.util.List<java.lang.Exception> getErrors()
getCauses()
instead.public java.lang.Throwable[] getCauses()
AggregateException
, or null
if there are no causes.