Class ExceptionAccumulator


public class ExceptionAccumulator extends Object
Utility to accumulate multiple potential exceptions into one that is thrown at the end
  • Constructor Details

    • ExceptionAccumulator

      public ExceptionAccumulator()
  • Method Details

    • propagate

      public void propagate()
      If there is an accumulated exception, throw it
    • add

      public void add(Throwable e)
      Add an exception into the accumulated exceptions. Note: if the exception is InterruptedException then Thread.currentThread().interrupt() is called.
      e - the exception