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
public class RetryableException extends Exception
This Exception class can be use withRetryUtils
. The methodRetryUtils.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RetryableException(Throwable t)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RetryableException
public RetryableException(Throwable t)
-
-