public class RetryableException extends Exception
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| Constructor and Description |
|---|
RetryableException(Throwable t) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RetryableException(Throwable t)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.