Package org.apache.druid.java.util
Class RetryableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.druid.java.util.RetryableException
- All Implemented Interfaces:
Serializable
This Exception class can be use with
RetryUtils.
The method RetryUtils.retry(RetryUtils.Task, Predicate, int) retry condition (Predicate argument)
requires an exception to be thrown and applying the predicate to the thrown exception.
For cases where the task method does not throw an exception but still needs retrying,
the method can throw this RetryableException so that the RetryUtils can then retry the task- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RetryableException
-