Package io.github.resilience4j.retry
Class MaxRetriesExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.resilience4j.retry.MaxRetriesExceededException
- All Implemented Interfaces:
java.io.Serializable
public class MaxRetriesExceededException
extends java.lang.RuntimeException
A
MaxRetriesExceededException signals that a Retry has exhausted all attempts,
and the result is still not satisfactory to RetryConfig.getResultPredicate()- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description static MaxRetriesExceededExceptioncreateMaxRetriesExceededException(Retry retry)Static method to construct aMaxRetriesExceededExceptionjava.lang.StringgetCausingRetryName()
-
Method Details
-
createMaxRetriesExceededException
Static method to construct aMaxRetriesExceededException- Parameters:
retry- the Retry which failed
-
getCausingRetryName
public java.lang.String getCausingRetryName()- Returns:
- the name of the
Retrythat caused this exception
-