Class NoAwsCredentialsException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
software.amazon.awssdk.core.exception.SdkException
software.amazon.awssdk.core.exception.SdkClientException
All Implemented Interfaces:
Serializable

public class NoAwsCredentialsException extends NoAuthWithAWSException
A special exception which declares that no credentials were found; this can be treated specially in logging, handling, etc. As it subclasses NoAuthWithAWSException, the S3A retry handler knows not to attempt to ask for the credentials again.
See Also:
  • Field Details

    • E_NO_AWS_CREDENTIALS

      public static final String E_NO_AWS_CREDENTIALS
      The default error message: "No AWS Credentials".
      See Also:
  • Constructor Details

    • NoAwsCredentialsException

      public NoAwsCredentialsException(@Nonnull String credentialProvider, @Nonnull String message)
      Construct.
      Parameters:
      credentialProvider - name of the credential provider.
      message - message.
    • NoAwsCredentialsException

      public NoAwsCredentialsException(@Nonnull String credentialProvider)
      Construct with the default message of E_NO_AWS_CREDENTIALS.
      Parameters:
      credentialProvider - name of the credential provider.
    • NoAwsCredentialsException

      public NoAwsCredentialsException(@Nonnull String credentialProvider, @Nonnull String message, Throwable thrown)
      Construct with exception.
      Parameters:
      credentialProvider - name of the credential provider.
      message - message.
      thrown - inner exception