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 byRetryStrategywhen a new token cannot be acquired.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TokenAcquisitionFailedException(String msg)Exception construction accepting message with no root cause.TokenAcquisitionFailedException(String msg, Throwable cause)Exception constructor accepting message and a root cause.TokenAcquisitionFailedException(String msg, RetryToken token, Throwable cause)Exception constructor accepting message, retry token, and a root cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RetryTokentoken()Returns the retry token that tracked the execution.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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 Detail
-
token
public RetryToken token()
Returns the retry token that tracked the execution.- Returns:
- the retry token that tracked the execution.
-
-