Package org.apache.hadoop.fs.s3a.auth
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
org.apache.hadoop.fs.s3a.CredentialInitializationException
org.apache.hadoop.fs.s3a.auth.NoAuthWithAWSException
org.apache.hadoop.fs.s3a.auth.NoAwsCredentialsException
- All Implemented Interfaces:
Serializable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.awssdk.core.exception.SdkClientException
software.amazon.awssdk.core.exception.SdkClientException.Builder, software.amazon.awssdk.core.exception.SdkClientException.BuilderImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default error message: "No AWS Credentials". -
Constructor Summary
ConstructorsConstructorDescriptionNoAwsCredentialsException(String credentialProvider) Construct with the default message ofE_NO_AWS_CREDENTIALS.NoAwsCredentialsException(String credentialProvider, String message) Construct.NoAwsCredentialsException(String credentialProvider, String message, Throwable thrown) Construct with exception. -
Method Summary
Methods inherited from class org.apache.hadoop.fs.s3a.CredentialInitializationException
retryableMethods inherited from class software.amazon.awssdk.core.exception.SdkClientException
builder, create, create, getMessage, toBuilderMethods inherited from class software.amazon.awssdk.core.exception.SdkException
numAttempts, rawMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
E_NO_AWS_CREDENTIALS
The default error message: "No AWS Credentials".- See Also:
-
-
Constructor Details
-
NoAwsCredentialsException
Construct.- Parameters:
credentialProvider- name of the credential provider.message- message.
-
NoAwsCredentialsException
Construct with the default message ofE_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
-