Class TokenAcquisitionFailedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
software.amazon.awssdk.retries.api.TokenAcquisitionFailedException
All Implemented Interfaces:
Serializable

@SdkPublicApi public final class TokenAcquisitionFailedException extends RuntimeException
Exception thrown by RetryStrategy when a new token cannot be acquired.
See Also:
  • Constructor Details

    • TokenAcquisitionFailedException

      public TokenAcquisitionFailedException(String msg)
      Exception construction accepting message with no root cause.
    • TokenAcquisitionFailedException

      public TokenAcquisitionFailedException(String msg, Throwable cause)
      Exception constructor accepting message and a root cause.
    • TokenAcquisitionFailedException

      public TokenAcquisitionFailedException(String msg, RetryToken token, Throwable cause)
      Exception constructor accepting message, retry token, and a root cause.
    • TokenAcquisitionFailedException

      public TokenAcquisitionFailedException(String msg, RetryToken token, Throwable cause, Duration delay)
      Exception constructor accepting message, retry token, a root cause, and delay.
  • Method Details

    • delay

      public Optional<Duration> delay()
      The amount of time to wait before returning to the caller.
    • token

      public RetryToken token()
      Returns the retry token that tracked the execution.
      Returns:
      the retry token that tracked the execution.