TooManyAttemptsException

class TooManyAttemptsException(message: String, cause: Throwable?, val attempts: Int, val lastResponse: Any?, val lastException: Throwable?) : RetryException

Indicates that retrying has failed because too many attempts have completed unsuccessfully.

Parameters

message

A message indicating the failure mode.

attempts

The number of attempts made before this failure was encountered.

lastResponse

The last response received from the retry strategy before this failure was encountered.

lastException

The exception caught by the retry strategy before this failure was encountered. Note that the Throwable in this parameter isn't necessarily the cause of this exception.

Constructors

Link copied to clipboard
constructor(message: String, cause: Throwable?, attempts: Int, lastResponse: Any?, lastException: Throwable?)

Inherited properties

Link copied to clipboard
Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val message: String?
Link copied to clipboard

Additional metadata about the error

Inherited functions

Link copied to clipboard
open override fun toString(): String