All Implemented Interfaces:
Serializable

public final class RetryRejectedException extends ResilientException
Thrown by the Retry pattern when shouldRetry declines to retry a failure before the attempt budget is exhausted. Distinct from RetryExhaustedException, which means the attempt budget itself ran out. The rejected failure is available via Throwable.getCause().
See Also:
  • Constructor Details

    • RetryRejectedException

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

    • attemptCount

      public int attemptCount()
      Total number of attempts made before shouldRetry declined to retry, including the first call.