Class TokenAcquisitionFailedException

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

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.
  • Method Details

    • token

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