Module: Aws::CodeCommit::Errors

Extended by:
Errors::DynamicErrors
Defined in:
lib/aws-sdk-codecommit/errors.rb

Overview

When CodeCommit returns an error response, the Ruby SDK constructs and raises an error. These errors all extend Aws::CodeCommit::Errors::ServiceError < Errors::ServiceError

You can rescue all CodeCommit errors using ServiceError:

begin
  # do stuff
rescue Aws::CodeCommit::Errors::ServiceError
  # rescues all CodeCommit 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

Additionally, error classes are dynamically generated for service errors based on the error code if they are not defined above.

Defined Under Namespace

Classes: ActorDoesNotExistException, ApprovalRuleContentRequiredException, ApprovalRuleDoesNotExistException, ApprovalRuleNameAlreadyExistsException, ApprovalRuleNameRequiredException, ApprovalRuleTemplateContentRequiredException, ApprovalRuleTemplateDoesNotExistException, ApprovalRuleTemplateInUseException, ApprovalRuleTemplateNameAlreadyExistsException, ApprovalRuleTemplateNameRequiredException, ApprovalStateRequiredException, AuthorDoesNotExistException, BeforeCommitIdAndAfterCommitIdAreSameException, BlobIdDoesNotExistException, BlobIdRequiredException, BranchDoesNotExistException, BranchNameExistsException, BranchNameIsTagNameException, BranchNameRequiredException, CannotDeleteApprovalRuleFromTemplateException, CannotModifyApprovalRuleFromTemplateException, ClientRequestTokenRequiredException, CommentContentRequiredException, CommentContentSizeLimitExceededException, CommentDeletedException, CommentDoesNotExistException, CommentIdRequiredException, CommentNotCreatedByCallerException, CommitDoesNotExistException, CommitIdDoesNotExistException, CommitIdRequiredException, CommitIdsLimitExceededException, CommitIdsListRequiredException, CommitMessageLengthExceededException, CommitRequiredException, ConcurrentReferenceUpdateException, DefaultBranchCannotBeDeletedException, DirectoryNameConflictsWithFileNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyInvalidIdException, EncryptionKeyInvalidUsageException, EncryptionKeyNotFoundException, EncryptionKeyRequiredException, EncryptionKeyUnavailableException, FileContentAndSourceFileSpecifiedException, FileContentRequiredException, FileContentSizeLimitExceededException, FileDoesNotExistException, FileEntryRequiredException, FileModeRequiredException, FileNameConflictsWithDirectoryNameException, FilePathConflictsWithSubmodulePathException, FileTooLargeException, FolderContentSizeLimitExceededException, FolderDoesNotExistException, IdempotencyParameterMismatchException, InvalidActorArnException, InvalidApprovalRuleContentException, InvalidApprovalRuleNameException, InvalidApprovalRuleTemplateContentException, InvalidApprovalRuleTemplateDescriptionException, InvalidApprovalRuleTemplateNameException, InvalidApprovalStateException, InvalidAuthorArnException, InvalidBlobIdException, InvalidBranchNameException, InvalidClientRequestTokenException, InvalidCommentIdException, InvalidCommitException, InvalidCommitIdException, InvalidConflictDetailLevelException, InvalidConflictResolutionException, InvalidConflictResolutionStrategyException, InvalidContinuationTokenException, InvalidDeletionParameterException, InvalidDescriptionException, InvalidDestinationCommitSpecifierException, InvalidEmailException, InvalidFileLocationException, InvalidFileModeException, InvalidFilePositionException, InvalidMaxConflictFilesException, InvalidMaxMergeHunksException, InvalidMaxResultsException, InvalidMergeOptionException, InvalidOrderException, InvalidOverrideStatusException, InvalidParentCommitIdException, InvalidPathException, InvalidPullRequestEventTypeException, InvalidPullRequestIdException, InvalidPullRequestStatusException, InvalidPullRequestStatusUpdateException, InvalidReactionUserArnException, InvalidReactionValueException, InvalidReferenceNameException, InvalidRelativeFileVersionEnumException, InvalidReplacementContentException, InvalidReplacementTypeException, InvalidRepositoryDescriptionException, InvalidRepositoryNameException, InvalidRepositoryTriggerBranchNameException, InvalidRepositoryTriggerCustomDataException, InvalidRepositoryTriggerDestinationArnException, InvalidRepositoryTriggerEventsException, InvalidRepositoryTriggerNameException, InvalidRepositoryTriggerRegionException, InvalidResourceArnException, InvalidRevisionIdException, InvalidRuleContentSha256Exception, InvalidSortByException, InvalidSourceCommitSpecifierException, InvalidSystemTagUsageException, InvalidTagKeysListException, InvalidTagsMapException, InvalidTargetBranchException, InvalidTargetException, InvalidTargetsException, InvalidTitleException, ManualMergeRequiredException, MaximumBranchesExceededException, MaximumConflictResolutionEntriesExceededException, MaximumFileContentToLoadExceededException, MaximumFileEntriesExceededException, MaximumItemsToCompareExceededException, MaximumNumberOfApprovalsExceededException, MaximumOpenPullRequestsExceededException, MaximumRepositoryNamesExceededException, MaximumRepositoryTriggersExceededException, MaximumRuleTemplatesAssociatedWithRepositoryException, MergeOptionRequiredException, MultipleConflictResolutionEntriesException, MultipleRepositoriesInPullRequestException, NameLengthExceededException, NoChangeException, NumberOfRuleTemplatesExceededException, NumberOfRulesExceededException, OperationNotAllowedException, OverrideAlreadySetException, OverrideStatusRequiredException, ParentCommitDoesNotExistException, ParentCommitIdOutdatedException, ParentCommitIdRequiredException, PathDoesNotExistException, PathRequiredException, PullRequestAlreadyClosedException, PullRequestApprovalRulesNotSatisfiedException, PullRequestCannotBeApprovedByAuthorException, PullRequestDoesNotExistException, PullRequestIdRequiredException, PullRequestStatusRequiredException, PutFileEntryConflictException, ReactionLimitExceededException, ReactionValueRequiredException, ReferenceDoesNotExistException, ReferenceNameRequiredException, ReferenceTypeNotSupportedException, ReplacementContentRequiredException, ReplacementTypeRequiredException, RepositoryDoesNotExistException, RepositoryLimitExceededException, RepositoryNameExistsException, RepositoryNameRequiredException, RepositoryNamesRequiredException, RepositoryNotAssociatedWithPullRequestException, RepositoryTriggerBranchNameListRequiredException, RepositoryTriggerDestinationArnRequiredException, RepositoryTriggerEventsListRequiredException, RepositoryTriggerNameRequiredException, RepositoryTriggersListRequiredException, ResourceArnRequiredException, RestrictedSourceFileException, RevisionIdRequiredException, RevisionNotCurrentException, SameFileContentException, SamePathRequestException, SourceAndDestinationAreSameException, SourceFileOrContentRequiredException, TagKeysListRequiredException, TagPolicyException, TagsMapRequiredException, TargetRequiredException, TargetsRequiredException, TipOfSourceReferenceIsDifferentException, TipsDivergenceExceededException, TitleRequiredException, TooManyTagsException