Package org.elasticsearch.nio.utils
Class ExceptionsHelper
java.lang.Object
org.elasticsearch.nio.utils.ExceptionsHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Throwable>
voidrethrowAndSuppress(List<T> exceptions) Rethrows the first exception in the list and adds all remaining to the suppressed list.
-
Constructor Details
-
ExceptionsHelper
public ExceptionsHelper()
-
-
Method Details
-
rethrowAndSuppress
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
-