Class AwsServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
software.amazon.awssdk.core.exception.SdkException
software.amazon.awssdk.core.exception.SdkServiceException
software.amazon.awssdk.awscore.exception.AwsServiceException
- All Implemented Interfaces:
Serializable
,SdkPojo
- Direct Known Subclasses:
AccessAnalyzerException
,AccountException
,AcmException
,AcmPcaException
,AlexaForBusinessException
,AmpException
,AmplifyBackendException
,AmplifyException
,AmplifyUiBuilderException
,ApiGatewayException
,ApiGatewayManagementApiException
,ApiGatewayV2Exception
,AppConfigDataException
,AppConfigException
,AppFabricException
,AppflowException
,AppIntegrationsException
,ApplicationAutoScalingException
,ApplicationCostProfilerException
,ApplicationDiscoveryException
,ApplicationInsightsException
,AppMeshException
,AppRunnerException
,AppStreamException
,AppSyncException
,ArcZonalShiftException
,ArtifactException
,AthenaException
,AuditManagerException
,AutoScalingException
,AutoScalingPlansException
,B2BiException
,BackupException
,BackupGatewayException
,BackupStorageException
,BatchException
,BcmDataExportsException
,BedrockAgentException
,BedrockAgentRuntimeException
,BedrockException
,BedrockRuntimeException
,BillingconductorException
,BraketException
,BudgetsException
,ChatbotException
,ChimeException
,ChimeSdkIdentityException
,ChimeSdkMediaPipelinesException
,ChimeSdkMeetingsException
,ChimeSdkMessagingException
,ChimeSdkVoiceException
,CleanRoomsException
,CleanRoomsMlException
,Cloud9Exception
,CloudControlException
,CloudDirectoryException
,CloudFormationException
,CloudFrontException
,CloudFrontKeyValueStoreException
,CloudHsmException
,CloudHsmV2Exception
,CloudSearchDomainException
,CloudSearchException
,CloudTrailDataException
,CloudTrailException
,CloudWatchEventsException
,CloudWatchException
,CloudWatchLogsException
,CodeartifactException
,CodeBuildException
,CodeCatalystException
,CodeCommitException
,CodeDeployException
,CodeGuruProfilerException
,CodeGuruReviewerException
,CodeGuruSecurityException
,CodePipelineException
,CodeStarConnectionsException
,CodeStarException
,CodestarNotificationsException
,CognitoIdentityException
,CognitoIdentityProviderException
,CognitoSyncException
,ComprehendException
,ComprehendMedicalException
,ComputeOptimizerException
,ConfigException
,ConnectCampaignsException
,ConnectCasesException
,ConnectContactLensException
,ConnectException
,ConnectParticipantException
,ControlTowerException
,CostAndUsageReportException
,CostExplorerException
,CostOptimizationHubException
,CustomerProfilesException
,DatabaseMigrationException
,DataBrewException
,DataExchangeException
,DataPipelineException
,DataSyncException
,DataZoneException
,DaxException
,DetectiveException
,DeviceFarmException
,DevOpsGuruException
,DirectConnectException
,DirectoryException
,DlmException
,DocDbElasticException
,DocDbException
,DrsException
,DynamoDbException
,EbsException
,Ec2Exception
,Ec2InstanceConnectException
,EcrException
,EcrPublicException
,EcsException
,EfsException
,EksAuthException
,EksException
,ElastiCacheException
,ElasticBeanstalkException
,ElasticInferenceException
,ElasticLoadBalancingException
,ElasticLoadBalancingV2Exception
,ElasticsearchException
,ElasticTranscoderException
,EmrContainersException
,EmrException
,EmrServerlessException
,EntityResolutionException
,EventBridgeException
,EvidentlyException
,FinspaceDataException
,FinspaceException
,FirehoseException
,FisException
,FmsException
,ForecastException
,ForecastqueryException
,FraudDetectorException
,FreeTierException
,FSxException
,GameLiftException
,GlacierException
,GlobalAcceleratorException
,GlueException
,GrafanaException
,GreengrassException
,GreengrassV2Exception
,GroundStationException
,GuardDutyException
,HealthException
,HealthLakeException
,HoneycodeException
,IamException
,IdentitystoreException
,ImagebuilderException
,Inspector2Exception
,InspectorException
,InspectorScanException
,InternetMonitorException
,Iot1ClickDevicesException
,Iot1ClickProjectsException
,IoTAnalyticsException
,IotDataPlaneException
,IotDeviceAdvisorException
,IotEventsDataException
,IotEventsException
,IotException
,IoTFleetHubException
,IoTFleetWiseException
,IotJobsDataPlaneException
,IoTSecureTunnelingException
,IoTSiteWiseException
,IoTThingsGraphException
,IoTTwinMakerException
,IotWirelessException
,IvschatException
,IvsException
,IvsRealTimeException
,KafkaConnectException
,KafkaException
,KendraException
,KendraRankingException
,KeyspacesException
,KinesisAnalyticsException
,KinesisAnalyticsV2Exception
,KinesisException
,KinesisVideoArchivedMediaException
,KinesisVideoException
,KinesisVideoMediaException
,KinesisVideoSignalingException
,KinesisVideoWebRtcStorageException
,KmsException
,LakeFormationException
,LambdaException
,LaunchWizardException
,LexModelBuildingException
,LexModelsV2Exception
,LexRuntimeException
,LexRuntimeV2Exception
,LicenseManagerException
,LicenseManagerLinuxSubscriptionsException
,LicenseManagerUserSubscriptionsException
,LightsailException
,LocationException
,LookoutEquipmentException
,LookoutMetricsException
,LookoutVisionException
,M2Exception
,MachineLearningException
,Macie2Exception
,ManagedBlockchainException
,ManagedBlockchainQueryException
,MarketplaceAgreementException
,MarketplaceCatalogException
,MarketplaceCommerceAnalyticsException
,MarketplaceDeploymentException
,MarketplaceEntitlementException
,MarketplaceMeteringException
,MediaConnectException
,MediaConvertException
,MediaLiveException
,MediaPackageException
,MediaPackageV2Exception
,MediaPackageVodException
,MediaStoreDataException
,MediaStoreException
,MediaTailorException
,MedicalImagingException
,MemoryDbException
,MgnException
,MigrationHubConfigException
,MigrationHubException
,MigrationHubOrchestratorException
,MigrationHubRefactorSpacesException
,MigrationHubStrategyException
,MobileException
,MqException
,MTurkException
,MwaaException
,NeptunedataException
,NeptuneException
,NeptuneGraphException
,NetworkFirewallException
,NetworkManagerException
,NetworkMonitorException
,NimbleException
,OamException
,OmicsException
,OpenSearchException
,OpenSearchServerlessException
,OpsWorksCmException
,OpsWorksException
,OrganizationsException
,OsisException
,OutpostsException
,PanoramaException
,PaymentCryptographyDataException
,PaymentCryptographyException
,PcaConnectorAdException
,PersonalizeEventsException
,PersonalizeException
,PersonalizeRuntimeException
,PiException
,PinpointEmailException
,PinpointException
,PinpointSmsVoiceException
,PinpointSmsVoiceV2Exception
,PipesException
,PollyException
,PricingException
,PrivateNetworksException
,ProtonException
,QBusinessException
,QConnectException
,QldbException
,QldbSessionException
,QuickSightException
,RamException
,RbinException
,RdsDataException
,RdsException
,RedshiftDataException
,RedshiftException
,RedshiftServerlessException
,RekognitionException
,RepostspaceException
,ResiliencehubException
,ResourceExplorer2Exception
,ResourceGroupsException
,ResourceGroupsTaggingApiException
,RoboMakerException
,RolesAnywhereException
,Route53DomainsException
,Route53Exception
,Route53RecoveryClusterException
,Route53RecoveryControlConfigException
,Route53RecoveryReadinessException
,Route53ResolverException
,RumException
,S3ControlException
,S3Exception
,S3OutpostsException
,SageMakerA2IRuntimeException
,SagemakerEdgeException
,SageMakerException
,SageMakerFeatureStoreRuntimeException
,SageMakerGeospatialException
,SageMakerMetricsException
,SageMakerRuntimeException
,SavingsplansException
,SchedulerException
,SchemasException
,SecretsManagerException
,SecurityHubException
,SecurityLakeException
,ServerlessApplicationRepositoryException
,ServiceCatalogAppRegistryException
,ServiceCatalogException
,ServiceDiscoveryException
,ServiceQuotasException
,SesException
,SesV2Exception
,SfnException
,ShieldException
,SignerException
,SimSpaceWeaverException
,SmsException
,SnowballException
,SnowDeviceManagementException
,SnsException
,SqsException
,SsmContactsException
,SsmException
,SsmIncidentsException
,SsmSapException
,SsoAdminException
,SsoException
,SsoOidcException
,StorageGatewayException
,StsException
,SupplyChainException
,SupportAppException
,SupportException
,SwfException
,SyntheticsException
,TextractException
,TimestreamInfluxDbException
,TimestreamQueryException
,TimestreamWriteException
,TnbException
,TranscribeException
,TranscribeStreamingException
,TransferException
,TranslateException
,TrustedAdvisorException
,VerifiedPermissionsException
,VoiceIdException
,VpcLatticeException
,WafException
,Wafv2Exception
,WellArchitectedException
,WisdomException
,WorkDocsException
,WorkLinkException
,WorkMailException
,WorkMailMessageFlowException
,WorkSpacesException
,WorkSpacesThinClientException
,WorkSpacesWebException
,XRayException
Extension of
SdkServiceException
that represents an error response returned
by an Amazon web service.
AmazonServiceException provides callers several pieces of information that can be used to obtain more information about the error and why it occurred. In particular, the errorType field can be used to determine if the caller's request was invalid, or the service encountered an error on the server side while processing it.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdditional details pertaining to an exception thrown by an AWS service.static AwsServiceException.Builder
builder()
boolean
Specifies whether or not an exception may have been caused by clock skew.boolean
Specifies whether or not an exception is caused by throttling.static Class
<? extends AwsServiceException.Builder> Create aAwsServiceException.Builder
initialized with the properties of thisAwsServiceException
.Methods inherited from class software.amazon.awssdk.core.exception.SdkServiceException
extendedRequestId, requestId, sdkFields, statusCode
Methods inherited from class software.amazon.awssdk.core.exception.SdkException
create, retryable
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
Method Details
-
awsErrorDetails
Additional details pertaining to an exception thrown by an AWS service.- Returns:
AwsErrorDetails
.
-
getMessage
- Overrides:
getMessage
in classThrowable
-
isClockSkewException
public boolean isClockSkewException()Description copied from class:SdkServiceException
Specifies whether or not an exception may have been caused by clock skew.- Overrides:
isClockSkewException
in classSdkServiceException
-
isThrottlingException
public boolean isThrottlingException()Description copied from class:SdkServiceException
Specifies whether or not an exception is caused by throttling.- Overrides:
isThrottlingException
in classSdkServiceException
- Returns:
- true if the status code is 429, otherwise false.
-
builder
- Returns:
AwsServiceException.Builder
instance to construct a newAwsServiceException
.
-
toBuilder
Create aAwsServiceException.Builder
initialized with the properties of thisAwsServiceException
.- Overrides:
toBuilder
in classSdkServiceException
- Returns:
- A new builder initialized with this config's properties.
-
serializableBuilderClass
-