Aggregates Exceptions that may be thrown in the process of a task's execution.
| 15 | * Aggregates Exceptions that may be thrown in the process of a task's execution. |
| 16 | */ |
| 17 | public class AggregateException extends Exception { |
| 18 | private static final long serialVersionUID = 1L; |
| 19 | |
| 20 | private List<Exception> errors; |
| 21 | |
| 22 | public AggregateException(List<Exception> errors) { |
| 23 | super("There were multiple errors."); |
| 24 | |
| 25 | this.errors = errors; |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * Returns the list of errors that this exception encapsulates. |
| 30 | */ |
| 31 | public List<Exception> getErrors() { |
| 32 | return errors; |
| 33 | } |
| 34 | } |
nothing calls this directly
no outgoing calls
no test coverage detected