Module: Aws::CodeDeploy::Errors
- Defined in:
- gems/aws-sdk-codedeploy/lib/aws-sdk-codedeploy/errors.rb
Overview
When CodeDeploy returns an error response, the Ruby SDK constructs and raises an error. These errors all extend Aws::CodeDeploy::Errors::ServiceError < Errors::ServiceError
You can rescue all CodeDeploy errors using ServiceError:
begin
# do stuff
rescue Aws::CodeDeploy::Errors::ServiceError
# rescues all CodeDeploy API errors
end
Request Context
ServiceError objects have a #context method that returns information about the request that generated the error. See Seahorse::Client::RequestContext for more information.
Error Classes
- AlarmsLimitExceededException
- ApplicationAlreadyExistsException
- ApplicationDoesNotExistException
- ApplicationLimitExceededException
- ApplicationNameRequiredException
- ArnNotSupportedException
- BatchLimitExceededException
- BucketNameFilterRequiredException
- DeploymentAlreadyCompletedException
- DeploymentAlreadyStartedException
- DeploymentConfigAlreadyExistsException
- DeploymentConfigDoesNotExistException
- DeploymentConfigInUseException
- DeploymentConfigLimitExceededException
- DeploymentConfigNameRequiredException
- DeploymentDoesNotExistException
- DeploymentGroupAlreadyExistsException
- DeploymentGroupDoesNotExistException
- DeploymentGroupLimitExceededException
- DeploymentGroupNameRequiredException
- DeploymentIdRequiredException
- DeploymentIsNotInReadyStateException
- DeploymentLimitExceededException
- DeploymentNotStartedException
- DeploymentTargetDoesNotExistException
- DeploymentTargetIdRequiredException
- DeploymentTargetListSizeExceededException
- DescriptionTooLongException
- ECSServiceMappingLimitExceededException
- GitHubAccountTokenDoesNotExistException
- GitHubAccountTokenNameRequiredException
- IamArnRequiredException
- IamSessionArnAlreadyRegisteredException
- IamUserArnAlreadyRegisteredException
- IamUserArnRequiredException
- InstanceDoesNotExistException
- InstanceIdRequiredException
- InstanceLimitExceededException
- InstanceNameAlreadyRegisteredException
- InstanceNameRequiredException
- InstanceNotRegisteredException
- InvalidAlarmConfigException
- InvalidApplicationNameException
- InvalidArnException
- InvalidAutoRollbackConfigException
- InvalidAutoScalingGroupException
- InvalidBlueGreenDeploymentConfigurationException
- InvalidBucketNameFilterException
- InvalidComputePlatformException
- InvalidDeployedStateFilterException
- InvalidDeploymentConfigNameException
- InvalidDeploymentGroupNameException
- InvalidDeploymentIdException
- InvalidDeploymentInstanceTypeException
- InvalidDeploymentStatusException
- InvalidDeploymentStyleException
- InvalidDeploymentTargetIdException
- InvalidDeploymentWaitTypeException
- InvalidEC2TagCombinationException
- InvalidEC2TagException
- InvalidECSServiceException
- InvalidExternalIdException
- InvalidFileExistsBehaviorException
- InvalidGitHubAccountTokenException
- InvalidGitHubAccountTokenNameException
- InvalidIamSessionArnException
- InvalidIamUserArnException
- InvalidIgnoreApplicationStopFailuresValueException
- InvalidInputException
- InvalidInstanceIdException
- InvalidInstanceNameException
- InvalidInstanceStatusException
- InvalidInstanceTypeException
- InvalidKeyPrefixFilterException
- InvalidLifecycleEventHookExecutionIdException
- InvalidLifecycleEventHookExecutionStatusException
- InvalidLoadBalancerInfoException
- InvalidMinimumHealthyHostValueException
- InvalidNextTokenException
- InvalidOnPremisesTagCombinationException
- InvalidOperationException
- InvalidRegistrationStatusException
- InvalidRevisionException
- InvalidRoleException
- InvalidSortByException
- InvalidSortOrderException
- InvalidTagException
- InvalidTagFilterException
- InvalidTagsToAddException
- InvalidTargetException
- InvalidTargetFilterNameException
- InvalidTargetGroupPairException
- InvalidTargetInstancesException
- InvalidTimeRangeException
- InvalidTrafficRoutingConfigurationException
- InvalidTriggerConfigException
- InvalidUpdateOutdatedInstancesOnlyValueException
- InvalidZonalDeploymentConfigurationException
- LifecycleEventAlreadyCompletedException
- LifecycleHookLimitExceededException
- MultipleIamArnsProvidedException
- OperationNotSupportedException
- ResourceArnRequiredException
- ResourceValidationException
- RevisionDoesNotExistException
- RevisionRequiredException
- RoleRequiredException
- TagLimitExceededException
- TagRequiredException
- TagSetListLimitExceededException
- ThrottlingException
- TriggerTargetsLimitExceededException
- UnsupportedActionForDeploymentTypeException
Additionally, error classes are dynamically generated for service errors based on the error code if they are not defined above.
Defined Under Namespace
Classes: AlarmsLimitExceededException, ApplicationAlreadyExistsException, ApplicationDoesNotExistException, ApplicationLimitExceededException, ApplicationNameRequiredException, ArnNotSupportedException, BatchLimitExceededException, BucketNameFilterRequiredException, DeploymentAlreadyCompletedException, DeploymentAlreadyStartedException, DeploymentConfigAlreadyExistsException, DeploymentConfigDoesNotExistException, DeploymentConfigInUseException, DeploymentConfigLimitExceededException, DeploymentConfigNameRequiredException, DeploymentDoesNotExistException, DeploymentGroupAlreadyExistsException, DeploymentGroupDoesNotExistException, DeploymentGroupLimitExceededException, DeploymentGroupNameRequiredException, DeploymentIdRequiredException, DeploymentIsNotInReadyStateException, DeploymentLimitExceededException, DeploymentNotStartedException, DeploymentTargetDoesNotExistException, DeploymentTargetIdRequiredException, DeploymentTargetListSizeExceededException, DescriptionTooLongException, ECSServiceMappingLimitExceededException, GitHubAccountTokenDoesNotExistException, GitHubAccountTokenNameRequiredException, IamArnRequiredException, IamSessionArnAlreadyRegisteredException, IamUserArnAlreadyRegisteredException, IamUserArnRequiredException, InstanceDoesNotExistException, InstanceIdRequiredException, InstanceLimitExceededException, InstanceNameAlreadyRegisteredException, InstanceNameRequiredException, InstanceNotRegisteredException, InvalidAlarmConfigException, InvalidApplicationNameException, InvalidArnException, InvalidAutoRollbackConfigException, InvalidAutoScalingGroupException, InvalidBlueGreenDeploymentConfigurationException, InvalidBucketNameFilterException, InvalidComputePlatformException, InvalidDeployedStateFilterException, InvalidDeploymentConfigNameException, InvalidDeploymentGroupNameException, InvalidDeploymentIdException, InvalidDeploymentInstanceTypeException, InvalidDeploymentStatusException, InvalidDeploymentStyleException, InvalidDeploymentTargetIdException, InvalidDeploymentWaitTypeException, InvalidEC2TagCombinationException, InvalidEC2TagException, InvalidECSServiceException, InvalidExternalIdException, InvalidFileExistsBehaviorException, InvalidGitHubAccountTokenException, InvalidGitHubAccountTokenNameException, InvalidIamSessionArnException, InvalidIamUserArnException, InvalidIgnoreApplicationStopFailuresValueException, InvalidInputException, InvalidInstanceIdException, InvalidInstanceNameException, InvalidInstanceStatusException, InvalidInstanceTypeException, InvalidKeyPrefixFilterException, InvalidLifecycleEventHookExecutionIdException, InvalidLifecycleEventHookExecutionStatusException, InvalidLoadBalancerInfoException, InvalidMinimumHealthyHostValueException, InvalidNextTokenException, InvalidOnPremisesTagCombinationException, InvalidOperationException, InvalidRegistrationStatusException, InvalidRevisionException, InvalidRoleException, InvalidSortByException, InvalidSortOrderException, InvalidTagException, InvalidTagFilterException, InvalidTagsToAddException, InvalidTargetException, InvalidTargetFilterNameException, InvalidTargetGroupPairException, InvalidTargetInstancesException, InvalidTimeRangeException, InvalidTrafficRoutingConfigurationException, InvalidTriggerConfigException, InvalidUpdateOutdatedInstancesOnlyValueException, InvalidZonalDeploymentConfigurationException, LifecycleEventAlreadyCompletedException, LifecycleHookLimitExceededException, MultipleIamArnsProvidedException, OperationNotSupportedException, ResourceArnRequiredException, ResourceValidationException, RevisionDoesNotExistException, RevisionRequiredException, RoleRequiredException, TagLimitExceededException, TagRequiredException, TagSetListLimitExceededException, ThrottlingException, TriggerTargetsLimitExceededException, UnsupportedActionForDeploymentTypeException