All Implemented Interfaces:
Serializable

public final class RetryExhaustedException extends ResilientException
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 Details

    • RetryExhaustedException

      public RetryExhaustedException(int attemptCount, Throwable cause)
  • Method Details

    • attemptCount

      public int attemptCount()
      Total number of attempts made before giving up, including the first call.