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 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 Details

    • RetryableException

      public RetryableException(Throwable t)