Class RetryExhaustedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.teceli.resiliencia.core.api.ResilientException
io.github.teceli.resiliencia.patterns.retry.RetryExhaustedException
- All Implemented Interfaces:
Serializable
Thrown by the Retry pattern when all configured attempts have failed.
Carries the total number of attempts made; the last failure is available via
Throwable.getCause().- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintTotal number of attempts made before giving up, including the first call.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RetryExhaustedException
-
-
Method Details
-
attemptCount
public int attemptCount()Total number of attempts made before giving up, including the first call.
-