Package org.apache.curator.utils
Class ExceptionAccumulator
java.lang.Object
org.apache.curator.utils.ExceptionAccumulator
Utility to accumulate multiple potential exceptions into one that
is thrown at the end
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ExceptionAccumulator
public ExceptionAccumulator()
-
-
Method Details
-
propagate
public void propagate()If there is an accumulated exception, throw it -
add
Add an exception into the accumulated exceptions. Note: if the exception isInterruptedException
thenThread.currentThread().interrupt()
is called.- Parameters:
e
- the exception
-