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.RuntimeExceptionAMaxRetriesExceededExceptionsignals that aRetryhas exhausted all attempts, and the result is still not satisfactory toRetryConfig.getResultPredicate()- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MaxRetriesExceededExceptioncreateMaxRetriesExceededException(Retry retry)Static method to construct aMaxRetriesExceededExceptionjava.lang.StringgetCausingRetryName()
-
-
-
Method Detail
-
createMaxRetriesExceededException
public static MaxRetriesExceededException createMaxRetriesExceededException(Retry retry)
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
-
-