Class 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:
    Serialized Form
    • Constructor Detail

      • RetryableException

        public RetryableException​(Throwable t)