AWS SDK for PHP 3.x
  • Namespace
  • Class
Did this page help you? SUBMIT FEEDBACK!

Namespaces

  • Aws
    • AccessAnalyzer
      • Exception
    • Acm
      • Exception
    • ACMPCA
      • Exception
    • AlexaForBusiness
      • Exception
    • Amplify
      • Exception
    • AmplifyBackend
      • Exception
    • Api
      • ErrorParser
      • Parser
        • Exception
      • Serializer
    • ApiGateway
      • Exception
    • ApiGatewayManagementApi
      • Exception
    • ApiGatewayV2
      • Exception
    • AppConfig
      • Exception
    • Appflow
      • Exception
    • AppIntegrationsService
      • Exception
    • ApplicationAutoScaling
      • Exception
    • ApplicationDiscoveryService
      • Exception
    • ApplicationInsights
      • Exception
    • AppMesh
      • Exception
    • AppRegistry
      • Exception
    • Appstream
      • Exception
    • AppSync
      • Exception
    • Arn
      • Exception
    • Athena
      • Exception
    • AuditManager
      • Exception
    • AugmentedAIRuntime
      • Exception
    • AutoScaling
      • Exception
    • AutoScalingPlans
      • Exception
    • Backup
      • Exception
    • Batch
      • Exception
    • Braket
      • Exception
    • Budgets
      • Exception
    • Chime
      • Exception
    • ClientSideMonitoring
      • Exception
    • Cloud9
      • Exception
    • CloudDirectory
      • Exception
    • CloudFormation
      • Exception
    • CloudFront
      • Exception
    • CloudHsm
      • Exception
    • CloudHSMV2
      • Exception
    • CloudSearch
      • Exception
    • CloudSearchDomain
      • Exception
    • CloudTrail
      • Exception
    • CloudWatch
      • Exception
    • CloudWatchEvents
      • Exception
    • CloudWatchLogs
      • Exception
    • CodeArtifact
      • Exception
    • CodeBuild
      • Exception
    • CodeCommit
      • Exception
    • CodeDeploy
      • Exception
    • CodeGuruProfiler
      • Exception
    • CodeGuruReviewer
      • Exception
    • CodePipeline
      • Exception
    • CodeStar
      • Exception
    • CodeStarconnections
      • Exception
    • CodeStarNotifications
      • Exception
    • CognitoIdentity
      • Exception
    • CognitoIdentityProvider
      • Exception
    • CognitoSync
      • Exception
    • Comprehend
      • Exception
    • ComprehendMedical
      • Exception
    • ComputeOptimizer
      • Exception
    • ConfigService
      • Exception
    • Connect
      • Exception
    • ConnectContactLens
      • Exception
    • ConnectParticipant
      • Exception
    • CostandUsageReportService
      • Exception
    • CostExplorer
      • Exception
    • Credentials
    • Crypto
      • Cipher
      • Polyfill
    • CustomerProfiles
      • Exception
    • DatabaseMigrationService
      • Exception
    • DataExchange
      • Exception
    • DataPipeline
      • Exception
    • DataSync
      • Exception
    • DAX
      • Exception
    • Detective
      • Exception
    • DeviceFarm
      • Exception
    • DevOpsGuru
      • Exception
    • DirectConnect
      • Exception
    • DirectoryService
      • Exception
    • DLM
      • Exception
    • DocDB
      • Exception
    • DynamoDb
      • Exception
    • DynamoDbStreams
      • Exception
    • EBS
      • Exception
    • Ec2
      • Exception
    • EC2InstanceConnect
      • Exception
    • Ecr
      • Exception
    • ECRPublic
      • Exception
    • Ecs
      • Exception
    • Efs
      • Exception
    • EKS
      • Exception
    • ElastiCache
      • Exception
    • ElasticBeanstalk
      • Exception
    • ElasticInference
      • Exception
    • ElasticLoadBalancing
      • Exception
    • ElasticLoadBalancingV2
      • Exception
    • ElasticsearchService
      • Exception
    • ElasticTranscoder
      • Exception
    • Emr
      • Exception
    • EMRContainers
      • Exception
    • Endpoint
    • EndpointDiscovery
      • Exception
    • EventBridge
      • Exception
    • Exception
    • Firehose
      • Exception
    • FIS
      • Exception
    • FMS
      • Exception
    • ForecastQueryService
      • Exception
    • ForecastService
      • Exception
    • FraudDetector
      • Exception
    • FSx
      • Exception
    • GameLift
      • Exception
    • Glacier
      • Exception
    • GlobalAccelerator
      • Exception
    • Glue
      • Exception
    • GlueDataBrew
      • Exception
    • Greengrass
      • Exception
    • GreengrassV2
      • Exception
    • GroundStation
      • Exception
    • GuardDuty
      • Exception
    • Handler
      • GuzzleV5
      • GuzzleV6
    • Health
      • Exception
    • HealthLake
      • Exception
    • Honeycode
      • Exception
    • Iam
      • Exception
    • IdentityStore
      • Exception
    • imagebuilder
      • Exception
    • ImportExport
      • Exception
    • Inspector
      • Exception
    • Iot
      • Exception
    • IoT1ClickDevicesService
      • Exception
    • IoT1ClickProjects
      • Exception
    • IoTAnalytics
      • Exception
    • IotDataPlane
      • Exception
    • IoTDeviceAdvisor
      • Exception
    • IoTEvents
      • Exception
    • IoTEventsData
      • Exception
    • IoTFleetHub
      • Exception
    • IoTJobsDataPlane
      • Exception
    • IoTSecureTunneling
      • Exception
    • IoTSiteWise
      • Exception
    • IoTThingsGraph
      • Exception
    • IoTWireless
      • Exception
    • IVS
      • Exception
    • Kafka
      • Exception
    • kendra
      • Exception
    • Kinesis
      • Exception
    • KinesisAnalytics
      • Exception
    • KinesisAnalyticsV2
      • Exception
    • KinesisVideo
      • Exception
    • KinesisVideoArchivedMedia
      • Exception
    • KinesisVideoMedia
      • Exception
    • KinesisVideoSignalingChannels
      • Exception
    • Kms
      • Exception
    • LakeFormation
      • Exception
    • Lambda
      • Exception
    • LexModelBuildingService
      • Exception
    • LexModelsV2
      • Exception
    • LexRuntimeService
      • Exception
    • LexRuntimeV2
      • Exception
    • LicenseManager
      • Exception
    • Lightsail
      • Exception
    • LocationService
      • Exception
    • LookoutEquipment
      • Exception
    • LookoutforVision
      • Exception
    • LookoutMetrics
      • Exception
    • MachineLearning
      • Exception
    • Macie
      • Exception
    • Macie2
      • Exception
    • ManagedBlockchain
      • Exception
    • MarketplaceCatalog
      • Exception
    • MarketplaceCommerceAnalytics
      • Exception
    • MarketplaceEntitlementService
      • Exception
    • MarketplaceMetering
      • Exception
    • MediaConnect
      • Exception
    • MediaConvert
      • Exception
    • MediaLive
      • Exception
    • MediaPackage
      • Exception
    • MediaPackageVod
      • Exception
    • MediaStore
      • Exception
    • MediaStoreData
      • Exception
    • MediaTailor
      • Exception
    • mgn
      • Exception
    • MigrationHub
      • Exception
    • MigrationHubConfig
      • Exception
    • Mobile
      • Exception
    • MQ
      • Exception
    • MTurk
      • Exception
    • Multipart
    • MWAA
      • Exception
    • Neptune
      • Exception
    • NetworkFirewall
      • Exception
    • NetworkManager
      • Exception
    • OpsWorks
      • Exception
    • OpsWorksCM
      • Exception
    • Organizations
      • Exception
    • Outposts
      • Exception
    • Personalize
      • Exception
    • PersonalizeEvents
      • Exception
    • PersonalizeRuntime
      • Exception
    • PI
      • Exception
    • Pinpoint
      • Exception
    • PinpointEmail
      • Exception
    • PinpointSMSVoice
      • Exception
    • Polly
      • Exception
    • Pricing
      • Exception
    • PrometheusService
      • Exception
    • QLDB
      • Exception
    • QLDBSession
      • Exception
    • QuickSight
      • Exception
    • RAM
      • Exception
    • Rds
      • Exception
    • RDSDataService
      • Exception
    • Redshift
      • Exception
    • RedshiftDataAPIService
      • Exception
    • Rekognition
      • Exception
    • ResourceGroups
      • Exception
    • ResourceGroupsTaggingAPI
      • Exception
    • Retry
      • Exception
    • RoboMaker
      • Exception
    • Route53
      • Exception
    • Route53Domains
      • Exception
    • Route53Resolver
      • Exception
    • S3
      • Crypto
      • Exception
      • RegionalEndpoint
        • Exception
      • UseArnRegion
        • Exception
    • S3Control
      • Exception
    • S3Outposts
      • Exception
    • SageMaker
      • Exception
    • SagemakerEdgeManager
      • Exception
    • SageMakerFeatureStoreRuntime
      • Exception
    • SageMakerRuntime
      • Exception
    • SavingsPlans
      • Exception
    • Schemas
      • Exception
    • SecretsManager
      • Exception
    • SecurityHub
      • Exception
    • ServerlessApplicationRepository
      • Exception
    • ServiceCatalog
      • Exception
    • ServiceDiscovery
      • Exception
    • ServiceQuotas
      • Exception
    • Ses
      • Exception
    • SesV2
      • Exception
    • Sfn
      • Exception
    • Shield
      • Exception
    • Signature
    • signer
      • Exception
    • Sms
      • Exception
    • SnowBall
      • Exception
    • Sns
      • Exception
    • Sqs
      • Exception
    • Ssm
      • Exception
    • SSO
      • Exception
    • SSOAdmin
      • Exception
    • SSOOIDC
      • Exception
    • StorageGateway
      • Exception
    • Sts
      • Exception
      • RegionalEndpoints
        • Exception
    • Support
      • Exception
    • Swf
      • Exception
    • Synthetics
      • Exception
    • Textract
      • Exception
    • TimestreamQuery
      • Exception
    • TimestreamWrite
      • Exception
    • TranscribeService
      • Exception
    • Transfer
      • Exception
    • Translate
      • Exception
    • Waf
      • Exception
    • WafRegional
      • Exception
    • WAFV2
      • Exception
    • WellArchitected
      • Exception
    • WorkDocs
      • Exception
    • WorkLink
      • Exception
    • WorkMail
      • Exception
    • WorkMailMessageFlow
      • Exception
    • WorkSpaces
      • Exception
    • XRay
      • Exception
  • GuzzleHttp
    • Promise
    • Psr7
  • Psr
    • Http
      • Message

Exceptions

  • AwsException
  • CouldNotCreateChecksumException
  • CredentialsException
  • CryptoException
  • CryptoPolyfillException
  • EventStreamDataException
  • IncalculablePayloadException
  • InvalidJsonException
  • InvalidRegionException
  • MultipartUploadException
  • UnresolvedApiException
  • UnresolvedEndpointException
  • UnresolvedSignatureException
AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class AwsException

Exception
Extended by RuntimeException
Extended by Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
Namespace: Aws\Exception
Located at Exception/AwsException.php

Represents an AWS exception that is thrown when a command fails.

Direct known subclasses

Aws\AccessAnalyzer\Exception\AccessAnalyzerException, Aws\Acm\Exception\AcmException, Aws\Appflow\Exception\AppflowException, Aws\ForecastService\Exception\ForecastServiceException, Aws\FraudDetector\Exception\FraudDetectorException, Aws\FSx\Exception\FSxException, Aws\GameLift\Exception\GameLiftException, Aws\Glacier\Exception\GlacierException, Aws\GlobalAccelerator\Exception\GlobalAcceleratorException, Aws\Glue\Exception\GlueException, Aws\GlueDataBrew\Exception\GlueDataBrewException, Aws\Greengrass\Exception\GreengrassException, Aws\GreengrassV2\Exception\GreengrassV2Exception, Aws\AppIntegrationsService\Exception\AppIntegrationsServiceException, Aws\GroundStation\Exception\GroundStationException, Aws\GuardDuty\Exception\GuardDutyException, Aws\Health\Exception\HealthException, Aws\HealthLake\Exception\HealthLakeException, Aws\Honeycode\Exception\HoneycodeException, Aws\Iam\Exception\IamException, Aws\IdentityStore\Exception\IdentityStoreException, Aws\imagebuilder\Exception\imagebuilderException, Aws\ImportExport\Exception\ImportExportException, Aws\Inspector\Exception\InspectorException, Aws\ApplicationAutoScaling\Exception\ApplicationAutoScalingException, Aws\IoT1ClickDevicesService\Exception\IoT1ClickDevicesServiceException, Aws\IoT1ClickProjects\Exception\IoT1ClickProjectsException, Aws\Iot\Exception\IotException, Aws\IoTAnalytics\Exception\IoTAnalyticsException, Aws\IotDataPlane\Exception\IotDataPlaneException, Aws\IoTDeviceAdvisor\Exception\IoTDeviceAdvisorException, Aws\IoTEvents\Exception\IoTEventsException, Aws\IoTEventsData\Exception\IoTEventsDataException, Aws\IoTFleetHub\Exception\IoTFleetHubException, Aws\IoTJobsDataPlane\Exception\IoTJobsDataPlaneException, Aws\ApplicationDiscoveryService\Exception\ApplicationDiscoveryServiceException, Aws\IoTSecureTunneling\Exception\IoTSecureTunnelingException, Aws\IoTSiteWise\Exception\IoTSiteWiseException, Aws\IoTThingsGraph\Exception\IoTThingsGraphException, Aws\IoTWireless\Exception\IoTWirelessException, Aws\IVS\Exception\IVSException, Aws\Kafka\Exception\KafkaException, Aws\kendra\Exception\kendraException, Aws\Kinesis\Exception\KinesisException, Aws\KinesisAnalytics\Exception\KinesisAnalyticsException, Aws\KinesisAnalyticsV2\Exception\KinesisAnalyticsV2Exception, Aws\ApplicationInsights\Exception\ApplicationInsightsException, Aws\KinesisVideo\Exception\KinesisVideoException, Aws\KinesisVideoArchivedMedia\Exception\KinesisVideoArchivedMediaException, Aws\KinesisVideoMedia\Exception\KinesisVideoMediaException, Aws\KinesisVideoSignalingChannels\Exception\KinesisVideoSignalingChannelsException, Aws\Kms\Exception\KmsException, Aws\LakeFormation\Exception\LakeFormationException, Aws\Lambda\Exception\LambdaException, Aws\LexModelBuildingService\Exception\LexModelBuildingServiceException, Aws\LexModelsV2\Exception\LexModelsV2Exception, Aws\LexRuntimeService\Exception\LexRuntimeServiceException, Aws\AppMesh\Exception\AppMeshException, Aws\LexRuntimeV2\Exception\LexRuntimeV2Exception, Aws\LicenseManager\Exception\LicenseManagerException, Aws\Lightsail\Exception\LightsailException, Aws\LocationService\Exception\LocationServiceException, Aws\LookoutEquipment\Exception\LookoutEquipmentException, Aws\LookoutforVision\Exception\LookoutforVisionException, Aws\LookoutMetrics\Exception\LookoutMetricsException, Aws\MachineLearning\Exception\MachineLearningException, Aws\Macie2\Exception\Macie2Exception, Aws\Macie\Exception\MacieException, Aws\AppRegistry\Exception\AppRegistryException, Aws\ManagedBlockchain\Exception\ManagedBlockchainException, Aws\MarketplaceCatalog\Exception\MarketplaceCatalogException, Aws\MarketplaceCommerceAnalytics\Exception\MarketplaceCommerceAnalyticsException, Aws\MarketplaceEntitlementService\Exception\MarketplaceEntitlementServiceException, Aws\MarketplaceMetering\Exception\MarketplaceMeteringException, Aws\MediaConnect\Exception\MediaConnectException, Aws\MediaConvert\Exception\MediaConvertException, Aws\MediaLive\Exception\MediaLiveException, Aws\MediaPackage\Exception\MediaPackageException, Aws\MediaPackageVod\Exception\MediaPackageVodException, Aws\Appstream\Exception\AppstreamException, Aws\MediaStore\Exception\MediaStoreException, Aws\MediaStoreData\Exception\MediaStoreDataException, Aws\MediaTailor\Exception\MediaTailorException, Aws\mgn\Exception\mgnException, Aws\MigrationHub\Exception\MigrationHubException, Aws\MigrationHubConfig\Exception\MigrationHubConfigException, Aws\Mobile\Exception\MobileException, Aws\MQ\Exception\MQException, Aws\MTurk\Exception\MTurkException, Aws\MWAA\Exception\MWAAException, Aws\AppSync\Exception\AppSyncException, Aws\Neptune\Exception\NeptuneException, Aws\NetworkFirewall\Exception\NetworkFirewallException, Aws\NetworkManager\Exception\NetworkManagerException, Aws\OpsWorks\Exception\OpsWorksException, Aws\OpsWorksCM\Exception\OpsWorksCMException, Aws\Organizations\Exception\OrganizationsException, Aws\Outposts\Exception\OutpostsException, Aws\Personalize\Exception\PersonalizeException, Aws\PersonalizeEvents\Exception\PersonalizeEventsException, Aws\PersonalizeRuntime\Exception\PersonalizeRuntimeException, Aws\Athena\Exception\AthenaException, Aws\PI\Exception\PIException, Aws\Pinpoint\Exception\PinpointException, Aws\PinpointEmail\Exception\PinpointEmailException, Aws\PinpointSMSVoice\Exception\PinpointSMSVoiceException, Aws\Polly\Exception\PollyException, Aws\Pricing\Exception\PricingException, Aws\PrometheusService\Exception\PrometheusServiceException, Aws\QLDB\Exception\QLDBException, Aws\QLDBSession\Exception\QLDBSessionException, Aws\QuickSight\Exception\QuickSightException, Aws\ACMPCA\Exception\ACMPCAException, Aws\AuditManager\Exception\AuditManagerException, Aws\RAM\Exception\RAMException, Aws\Rds\Exception\RdsException, Aws\RDSDataService\Exception\RDSDataServiceException, Aws\Redshift\Exception\RedshiftException, Aws\RedshiftDataAPIService\Exception\RedshiftDataAPIServiceException, Aws\Rekognition\Exception\RekognitionException, Aws\ResourceGroups\Exception\ResourceGroupsException, Aws\ResourceGroupsTaggingAPI\Exception\ResourceGroupsTaggingAPIException, Aws\RoboMaker\Exception\RoboMakerException, Aws\Route53\Exception\Route53Exception, Aws\AugmentedAIRuntime\Exception\AugmentedAIRuntimeException, Aws\Route53Domains\Exception\Route53DomainsException, Aws\Route53Resolver\Exception\Route53ResolverException, Aws\S3\Exception\S3Exception, Aws\S3Control\Exception\S3ControlException, Aws\S3Outposts\Exception\S3OutpostsException, Aws\SageMaker\Exception\SageMakerException, Aws\SagemakerEdgeManager\Exception\SagemakerEdgeManagerException, Aws\SageMakerFeatureStoreRuntime\Exception\SageMakerFeatureStoreRuntimeException, Aws\SageMakerRuntime\Exception\SageMakerRuntimeException, Aws\SavingsPlans\Exception\SavingsPlansException, Aws\AutoScaling\Exception\AutoScalingException, Aws\Schemas\Exception\SchemasException, Aws\SecretsManager\Exception\SecretsManagerException, Aws\SecurityHub\Exception\SecurityHubException, Aws\ServerlessApplicationRepository\Exception\ServerlessApplicationRepositoryException, Aws\ServiceCatalog\Exception\ServiceCatalogException, Aws\ServiceDiscovery\Exception\ServiceDiscoveryException, Aws\ServiceQuotas\Exception\ServiceQuotasException, Aws\Ses\Exception\SesException, Aws\SesV2\Exception\SesV2Exception, Aws\Sfn\Exception\SfnException, Aws\AutoScalingPlans\Exception\AutoScalingPlansException, Aws\Shield\Exception\ShieldException, Aws\signer\Exception\signerException, Aws\Sms\Exception\SmsException, Aws\SnowBall\Exception\SnowBallException, Aws\Sns\Exception\SnsException, Aws\Sqs\Exception\SqsException, Aws\Ssm\Exception\SsmException, Aws\SSO\Exception\SSOException, Aws\SSOAdmin\Exception\SSOAdminException, Aws\SSOOIDC\Exception\SSOOIDCException, Aws\Backup\Exception\BackupException, Aws\StorageGateway\Exception\StorageGatewayException, Aws\Sts\Exception\StsException, Aws\Support\Exception\SupportException, Aws\Swf\Exception\SwfException, Aws\Synthetics\Exception\SyntheticsException, Aws\Textract\Exception\TextractException, Aws\TimestreamQuery\Exception\TimestreamQueryException, Aws\TimestreamWrite\Exception\TimestreamWriteException, Aws\TranscribeService\Exception\TranscribeServiceException, Aws\Transfer\Exception\TransferException, Aws\Batch\Exception\BatchException, Aws\Translate\Exception\TranslateException, Aws\Waf\Exception\WafException, Aws\WafRegional\Exception\WafRegionalException, Aws\WAFV2\Exception\WAFV2Exception, Aws\WellArchitected\Exception\WellArchitectedException, Aws\WorkDocs\Exception\WorkDocsException, Aws\WorkLink\Exception\WorkLinkException, Aws\WorkMail\Exception\WorkMailException, Aws\WorkMailMessageFlow\Exception\WorkMailMessageFlowException, Aws\WorkSpaces\Exception\WorkSpacesException, Aws\Braket\Exception\BraketException, Aws\XRay\Exception\XRayException, Aws\Budgets\Exception\BudgetsException, Aws\Chime\Exception\ChimeException, Aws\Cloud9\Exception\Cloud9Exception, Aws\AlexaForBusiness\Exception\AlexaForBusinessException, Aws\CloudDirectory\Exception\CloudDirectoryException, Aws\CloudFormation\Exception\CloudFormationException, Aws\CloudFront\Exception\CloudFrontException, Aws\CloudHsm\Exception\CloudHsmException, Aws\CloudHSMV2\Exception\CloudHSMV2Exception, Aws\CloudSearch\Exception\CloudSearchException, Aws\CloudSearchDomain\Exception\CloudSearchDomainException, Aws\CloudTrail\Exception\CloudTrailException, Aws\CloudWatch\Exception\CloudWatchException, Aws\CloudWatchEvents\Exception\CloudWatchEventsException, Aws\Amplify\Exception\AmplifyException, Aws\CloudWatchLogs\Exception\CloudWatchLogsException, Aws\CodeArtifact\Exception\CodeArtifactException, Aws\CodeBuild\Exception\CodeBuildException, Aws\CodeCommit\Exception\CodeCommitException, Aws\CodeDeploy\Exception\CodeDeployException, Aws\CodeGuruProfiler\Exception\CodeGuruProfilerException, Aws\CodeGuruReviewer\Exception\CodeGuruReviewerException, Aws\CodePipeline\Exception\CodePipelineException, Aws\CodeStar\Exception\CodeStarException, Aws\CodeStarconnections\Exception\CodeStarconnectionsException, Aws\AmplifyBackend\Exception\AmplifyBackendException, Aws\CodeStarNotifications\Exception\CodeStarNotificationsException, Aws\CognitoIdentity\Exception\CognitoIdentityException, Aws\CognitoIdentityProvider\Exception\CognitoIdentityProviderException, Aws\CognitoSync\Exception\CognitoSyncException, Aws\Comprehend\Exception\ComprehendException, Aws\ComprehendMedical\Exception\ComprehendMedicalException, Aws\ComputeOptimizer\Exception\ComputeOptimizerException, Aws\ConfigService\Exception\ConfigServiceException, Aws\Connect\Exception\ConnectException, Aws\ConnectContactLens\Exception\ConnectContactLensException, Aws\ApiGateway\Exception\ApiGatewayException, Aws\ConnectParticipant\Exception\ConnectParticipantException, Aws\CostandUsageReportService\Exception\CostandUsageReportServiceException, Aws\CostExplorer\Exception\CostExplorerException, Aws\CustomerProfiles\Exception\CustomerProfilesException, Aws\DatabaseMigrationService\Exception\DatabaseMigrationServiceException, Aws\DataExchange\Exception\DataExchangeException, Aws\DataPipeline\Exception\DataPipelineException, Aws\DataSync\Exception\DataSyncException, Aws\DAX\Exception\DAXException, Aws\Detective\Exception\DetectiveException, Aws\ApiGatewayManagementApi\Exception\ApiGatewayManagementApiException, Aws\DeviceFarm\Exception\DeviceFarmException, Aws\DevOpsGuru\Exception\DevOpsGuruException, Aws\DirectConnect\Exception\DirectConnectException, Aws\DirectoryService\Exception\DirectoryServiceException, Aws\DLM\Exception\DLMException, Aws\DocDB\Exception\DocDBException, Aws\DynamoDb\Exception\DynamoDbException, Aws\DynamoDbStreams\Exception\DynamoDbStreamsException, Aws\EBS\Exception\EBSException, Aws\Ec2\Exception\Ec2Exception, Aws\ApiGatewayV2\Exception\ApiGatewayV2Exception, Aws\EC2InstanceConnect\Exception\EC2InstanceConnectException, Aws\Ecr\Exception\EcrException, Aws\ECRPublic\Exception\ECRPublicException, Aws\Ecs\Exception\EcsException, Aws\Efs\Exception\EfsException, Aws\EKS\Exception\EKSException, Aws\ElastiCache\Exception\ElastiCacheException, Aws\ElasticBeanstalk\Exception\ElasticBeanstalkException, Aws\ElasticInference\Exception\ElasticInferenceException, Aws\ElasticLoadBalancing\Exception\ElasticLoadBalancingException, Aws\AppConfig\Exception\AppConfigException, Aws\ElasticLoadBalancingV2\Exception\ElasticLoadBalancingV2Exception, Aws\ElasticsearchService\Exception\ElasticsearchServiceException, Aws\ElasticTranscoder\Exception\ElasticTranscoderException, Aws\Emr\Exception\EmrException, Aws\EMRContainers\Exception\EMRContainersException, Aws\EventBridge\Exception\EventBridgeException, Aws\Firehose\Exception\FirehoseException, Aws\FIS\Exception\FISException, Aws\FMS\Exception\FMSException, Aws\ForecastQueryService\Exception\ForecastQueryServiceException

Indirect known subclasses

Aws\S3\Exception\PermanentRedirectException

Methods Summary

  • __construct ( string $message, Aws\CommandInterface $command, array $context = [], Exception $previous = null )
  • __toString ( )
  • getCommand ( )

    Get the command that was executed.

  • getAwsErrorMessage ( )

    Get the concise error message if any.

  • getRequest ( )

    Get the sent HTTP request if any.

  • getResponse ( )

    Get the received HTTP response if any.

  • getResult ( )

    Get the result of the exception if available

  • isConnectionError ( )

    Returns true if this is a connection error.

  • getStatusCode ( )

    If available, gets the HTTP status code of the corresponding response

  • getAwsRequestId ( )

    Get the request ID of the error. This value is only present if a response was received and is not present in the event of a networking error.

  • getAwsErrorType ( )

    Get the AWS error type.

  • getAwsErrorCode ( )

    Get the AWS error code.

  • getAwsErrorShape ( )

    Get the AWS error shape.

  • getTransferInfo ( string $name = null )

    Get all transfer information as an associative array if no $name argument is supplied, or gets a specific transfer statistic if a $name attribute is supplied (e.g., 'retries_attempted').

  • setTransferInfo ( array $info )

    Replace the transfer information associated with an exception.

  • isMaxRetriesExceeded ( )

    Returns whether the max number of retries is exceeded.

  • setMaxRetriesExceeded ( )

    Sets the flag for max number of retries exceeded.

  • hasKey ( $name )
  • get ( $key )
  • search ( $expression )

Methods inherited from Exception

__wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()

Methods inherited from Aws\MonitoringEventsInterface

appendMonitoringEvent(), getMonitoringEvents(), prependMonitoringEvent()

Methods inherited from ArrayAccess

offsetExists(), offsetGet(), offsetSet(), offsetUnset()

Methods used from Aws\HasDataTrait

count(), getIterator(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), toArray()

Methods used from Aws\HasMonitoringEventsTrait

appendMonitoringEvent(), getMonitoringEvents(), prependMonitoringEvent()

Methods Details

__construct ( string $message, Aws\CommandInterface $command, array $context = [], Exception $previous = null )

Parameters

string $message Exception message
Aws\CommandInterface $command
array $context = [] Exception context
Exception $previous = null Previous exception (if any)

Overrides

Exception::__construct

__toString ( )

Overrides

Exception::__toString

Aws\CommandInterface getCommand ( )

Get the command that was executed.

Returns

Aws\CommandInterface

string|null getAwsErrorMessage ( )

Get the concise error message if any.

Returns

string|null

Psr\Http\Message\RequestInterface|null getRequest ( )

Get the sent HTTP request if any.

Returns

Psr\Http\Message\RequestInterface|null

Psr\Http\Message\ResponseInterface|null getResponse ( )

Get the received HTTP response if any.

Returns

Psr\Http\Message\ResponseInterface|null

Implementation of

Aws\ResponseContainerInterface::getResponse()

Aws\ResultInterface|null getResult ( )

Get the result of the exception if available

Returns

Aws\ResultInterface|null

boolean isConnectionError ( )

Returns true if this is a connection error.

Returns

boolean

integer|null getStatusCode ( )

If available, gets the HTTP status code of the corresponding response

Returns

integer|null

string|null getAwsRequestId ( )

Get the request ID of the error. This value is only present if a response was received and is not present in the event of a networking error.

Returns

string|null
Returns null if no response was received

string|null getAwsErrorType ( )

Get the AWS error type.

Returns

string|null
Returns null if no response was received

string|null getAwsErrorCode ( )

Get the AWS error code.

Returns

string|null
Returns null if no response was received

Aws\Api\Shape|null getAwsErrorShape ( )

Get the AWS error shape.

Returns

Aws\Api\Shape|null
Returns null if no response was received

mixed|null|array getTransferInfo ( string $name = null )

Get all transfer information as an associative array if no $name argument is supplied, or gets a specific transfer statistic if a $name attribute is supplied (e.g., 'retries_attempted').

Parameters

string $name = null Name of the transfer stat to retrieve

Returns

mixed|null|array

setTransferInfo ( array $info )

Replace the transfer information associated with an exception.

Parameters

array $info

boolean isMaxRetriesExceeded ( )

Returns whether the max number of retries is exceeded.

Returns

boolean

setMaxRetriesExceeded ( )

Sets the flag for max number of retries exceeded.

hasKey ( $name )

get ( $key )

search ( $expression )

AWS SDK for PHP 3.x API documentation generated by ApiGen