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:
Serializable
A
MaxRetriesExceededException signals that a Retry has exhausted all attempts,
and the result is still not satisfactory to RetryConfig.getResultPredicate()- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic MaxRetriesExceededExceptionStatic method to construct aMaxRetriesExceededExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
createMaxRetriesExceededException
Static method to construct aMaxRetriesExceededException- Parameters:
retry- the Retry which failed
-
getCausingRetryName
- Returns:
- the name of the
Retrythat caused this exception
-