Class ExceptionsHelper

java.lang.Object
org.elasticsearch.nio.utils.ExceptionsHelper

public class ExceptionsHelper extends Object
  • Constructor Details

    • ExceptionsHelper

      public ExceptionsHelper()
  • Method Details

    • rethrowAndSuppress

      public static <T extends Throwable> void rethrowAndSuppress(List<T> exceptions) throws T
      Rethrows the first exception in the list and adds all remaining to the suppressed list. If the given list is empty no exception is thrown
      Throws:
      T extends Throwable