Class MultipleExecutionException

  • All Implemented Interfaces:
    Serializable

    public class MultipleExecutionException
    extends Exception
    This exception is thrown when any of the parallel tasks throws an exception during execution. This exception contains all the exceptions caught during execution.
    See Also:
    Serialized Form
    • Constructor Detail

      • MultipleExecutionException

        public MultipleExecutionException​(List<?> results,
                                          List<ExecutionException> exceptions)
        Construct an exception with the (partial) results and all exceptions encountered during execution.
        Parameters:
        results - the results obtained so far
        exceptions - all exceptions encountered during execution
    • Method Detail

      • getResults

        public List<?> getResults()
        Get the results obtained so far.
        Returns:
        the results
      • getExceptions

        public List<ExecutionException> getExceptions()
        Get all exceptions encountered during execution.
        Returns:
        all exceptions encountered during execution
      • getMessage

        public String getMessage()
        Gather the stack traces for the thrown exceptions.
        Overrides:
        getMessage in class Throwable
        Returns:
        the detailed messages of all the thrown exceptions