Package org.apache.hadoop.fs.s3a
Class CredentialInitializationException
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
- All Implemented Interfaces:
Serializable
@Public
@Stable
public class CredentialInitializationException
extends software.amazon.awssdk.core.exception.SdkClientException
Exception which Hadoop's AWSCredentialsProvider implementations should
throw when there is a problem with the credential setup. This
is a subclass of
SdkClientException which sets
retryable() to false, so as to fail fast.
This is used in credential providers and elsewhere.
When passed through S3AUtils.translateException() it
is mapped to an AccessDeniedException.- 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 -
Constructor Summary
ConstructorsConstructorDescriptionCredentialInitializationException(String message) CredentialInitializationException(String message, Throwable t) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis exception is not going to go away if you try calling it again.Methods 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
-
Constructor Details
-
CredentialInitializationException
-
CredentialInitializationException
-
-
Method Details
-
retryable
public boolean retryable()This exception is not going to go away if you try calling it again.- Overrides:
retryablein classsoftware.amazon.awssdk.core.exception.SdkException- Returns:
- false, always.
-