// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// All possible error types for this service.
#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
///
The specified Amazon Resource Name (ARN) does not exist in the Amazon Web Services account.
ActorDoesNotExistException(crate::types::error::ActorDoesNotExistException),
/// The content for the approval rule is empty. You must provide some content for an approval rule. The content cannot be null.
ApprovalRuleContentRequiredException(crate::types::error::ApprovalRuleContentRequiredException),
/// The specified approval rule does not exist.
ApprovalRuleDoesNotExistException(crate::types::error::ApprovalRuleDoesNotExistException),
/// An approval rule with that name already exists. Approval rule names must be unique within the scope of a pull request.
ApprovalRuleNameAlreadyExistsException(crate::types::error::ApprovalRuleNameAlreadyExistsException),
/// An approval rule name is required, but was not specified.
ApprovalRuleNameRequiredException(crate::types::error::ApprovalRuleNameRequiredException),
/// The content for the approval rule template is empty. You must provide some content for an approval rule template. The content cannot be null.
ApprovalRuleTemplateContentRequiredException(crate::types::error::ApprovalRuleTemplateContentRequiredException),
/// The specified approval rule template does not exist. Verify that the name is correct and that you are signed in to the Amazon Web Services Region where the template was created, and then try again.
ApprovalRuleTemplateDoesNotExistException(crate::types::error::ApprovalRuleTemplateDoesNotExistException),
/// The approval rule template is associated with one or more repositories. You cannot delete a template that is associated with a repository. Remove all associations, and then try again.
ApprovalRuleTemplateInUseException(crate::types::error::ApprovalRuleTemplateInUseException),
/// You cannot create an approval rule template with that name because a template with that name already exists in this Amazon Web Services Region for your Amazon Web Services account. Approval rule template names must be unique.
ApprovalRuleTemplateNameAlreadyExistsException(crate::types::error::ApprovalRuleTemplateNameAlreadyExistsException),
/// An approval rule template name is required, but was not specified.
ApprovalRuleTemplateNameRequiredException(crate::types::error::ApprovalRuleTemplateNameRequiredException),
/// An approval state is required, but was not specified.
ApprovalStateRequiredException(crate::types::error::ApprovalStateRequiredException),
/// The specified Amazon Resource Name (ARN) does not exist in the Amazon Web Services account.
AuthorDoesNotExistException(crate::types::error::AuthorDoesNotExistException),
/// The before commit ID and the after commit ID are the same, which is not valid. The before commit ID and the after commit ID must be different commit IDs.
BeforeCommitIdAndAfterCommitIdAreSameException(crate::types::error::BeforeCommitIdAndAfterCommitIdAreSameException),
/// The specified blob does not exist.
BlobIdDoesNotExistException(crate::types::error::BlobIdDoesNotExistException),
/// A blob ID is required, but was not specified.
BlobIdRequiredException(crate::types::error::BlobIdRequiredException),
/// The specified branch does not exist.
BranchDoesNotExistException(crate::types::error::BranchDoesNotExistException),
/// Cannot create the branch with the specified name because the commit conflicts with an existing branch with the same name. Branch names must be unique.
BranchNameExistsException(crate::types::error::BranchNameExistsException),
/// The specified branch name is not valid because it is a tag name. Enter the name of a branch in the repository. For a list of valid branch names, use ListBranches
.
BranchNameIsTagNameException(crate::types::error::BranchNameIsTagNameException),
/// A branch name is required, but was not specified.
BranchNameRequiredException(crate::types::error::BranchNameRequiredException),
/// The approval rule cannot be deleted from the pull request because it was created by an approval rule template and applied to the pull request automatically.
CannotDeleteApprovalRuleFromTemplateException(crate::types::error::CannotDeleteApprovalRuleFromTemplateException),
/// The approval rule cannot be modified for the pull request because it was created by an approval rule template and applied to the pull request automatically.
CannotModifyApprovalRuleFromTemplateException(crate::types::error::CannotModifyApprovalRuleFromTemplateException),
/// A client request token is required. A client request token is an unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
ClientRequestTokenRequiredException(crate::types::error::ClientRequestTokenRequiredException),
/// The comment is empty. You must provide some content for a comment. The content cannot be null.
CommentContentRequiredException(crate::types::error::CommentContentRequiredException),
/// The comment is too large. Comments are limited to 10,240 characters.
CommentContentSizeLimitExceededException(crate::types::error::CommentContentSizeLimitExceededException),
/// This comment has already been deleted. You cannot edit or delete a deleted comment.
CommentDeletedException(crate::types::error::CommentDeletedException),
/// No comment exists with the provided ID. Verify that you have used the correct ID, and then try again.
CommentDoesNotExistException(crate::types::error::CommentDoesNotExistException),
/// The comment ID is missing or null. A comment ID is required.
CommentIdRequiredException(crate::types::error::CommentIdRequiredException),
/// You cannot modify or delete this comment. Only comment authors can modify or delete their comments.
CommentNotCreatedByCallerException(crate::types::error::CommentNotCreatedByCallerException),
/// The specified commit does not exist or no commit was specified, and the specified repository has no default branch.
CommitDoesNotExistException(crate::types::error::CommitDoesNotExistException),
/// The specified commit ID does not exist.
CommitIdDoesNotExistException(crate::types::error::CommitIdDoesNotExistException),
/// A commit ID was not specified.
CommitIdRequiredException(crate::types::error::CommitIdRequiredException),
/// The maximum number of allowed commit IDs in a batch request is 100. Verify that your batch requests contains no more than 100 commit IDs, and then try again.
CommitIdsLimitExceededException(crate::types::error::CommitIdsLimitExceededException),
/// A list of commit IDs is required, but was either not specified or the list was empty.
CommitIdsListRequiredException(crate::types::error::CommitIdsListRequiredException),
/// The commit message is too long. Provide a shorter string.
CommitMessageLengthExceededException(crate::types::error::CommitMessageLengthExceededException),
/// A commit was not specified.
CommitRequiredException(crate::types::error::CommitRequiredException),
/// The merge cannot be completed because the target branch has been modified. Another user might have modified the target branch while the merge was in progress. Wait a few minutes, and then try again.
ConcurrentReferenceUpdateException(crate::types::error::ConcurrentReferenceUpdateException),
/// The specified branch is the default branch for the repository, and cannot be deleted. To delete this branch, you must first set another branch as the default branch.
DefaultBranchCannotBeDeletedException(crate::types::error::DefaultBranchCannotBeDeletedException),
/// A file cannot be added to the repository because the specified path name has the same name as a file that already exists in this repository. Either provide a different name for the file, or specify a different path for the file.
DirectoryNameConflictsWithFileNameException(crate::types::error::DirectoryNameConflictsWithFileNameException),
/// An encryption integrity check failed.
EncryptionIntegrityChecksFailedException(crate::types::error::EncryptionIntegrityChecksFailedException),
/// An encryption key could not be accessed.
EncryptionKeyAccessDeniedException(crate::types::error::EncryptionKeyAccessDeniedException),
/// The encryption key is disabled.
EncryptionKeyDisabledException(crate::types::error::EncryptionKeyDisabledException),
/// The Key Management Service encryption key is not valid.
EncryptionKeyInvalidIdException(crate::types::error::EncryptionKeyInvalidIdException),
/// A KMS encryption key was used to try and encrypt or decrypt a repository, but either the repository or the key was not in a valid state to support the operation.
EncryptionKeyInvalidUsageException(crate::types::error::EncryptionKeyInvalidUsageException),
/// No encryption key was found.
EncryptionKeyNotFoundException(crate::types::error::EncryptionKeyNotFoundException),
/// A KMS encryption key ID is required but was not specified.
EncryptionKeyRequiredException(crate::types::error::EncryptionKeyRequiredException),
/// The encryption key is not available.
EncryptionKeyUnavailableException(crate::types::error::EncryptionKeyUnavailableException),
/// The commit cannot be created because both a source file and file content have been specified for the same file. You cannot provide both. Either specify a source file or provide the file content directly.
FileContentAndSourceFileSpecifiedException(crate::types::error::FileContentAndSourceFileSpecifiedException),
/// The file cannot be added because it is empty. Empty files cannot be added to the repository with this API.
FileContentRequiredException(crate::types::error::FileContentRequiredException),
/// The file cannot be added because it is too large. The maximum file size is 6 MB, and the combined file content change size is 7 MB. Consider making these changes using a Git client.
FileContentSizeLimitExceededException(crate::types::error::FileContentSizeLimitExceededException),
/// The specified file does not exist. Verify that you have used the correct file name, full path, and extension.
FileDoesNotExistException(crate::types::error::FileDoesNotExistException),
/// The commit cannot be created because no files have been specified as added, updated, or changed (PutFile or DeleteFile) for the commit.
FileEntryRequiredException(crate::types::error::FileEntryRequiredException),
/// The commit cannot be created because no file mode has been specified. A file mode is required to update mode permissions for a file.
FileModeRequiredException(crate::types::error::FileModeRequiredException),
/// A file cannot be added to the repository because the specified file name has the same name as a directory in this repository. Either provide another name for the file, or add the file in a directory that does not match the file name.
FileNameConflictsWithDirectoryNameException(crate::types::error::FileNameConflictsWithDirectoryNameException),
/// The commit cannot be created because a specified file path points to a submodule. Verify that the destination files have valid file paths that do not point to a submodule.
FilePathConflictsWithSubmodulePathException(crate::types::error::FilePathConflictsWithSubmodulePathException),
/// The specified file exceeds the file size limit for CodeCommit. For more information about limits in CodeCommit, see Quotas in the CodeCommit User Guide.
FileTooLargeException(crate::types::error::FileTooLargeException),
/// The commit cannot be created because at least one of the overall changes in the commit results in a folder whose contents exceed the limit of 6 MB. Either reduce the number and size of your changes, or split the changes across multiple folders.
FolderContentSizeLimitExceededException(crate::types::error::FolderContentSizeLimitExceededException),
/// The specified folder does not exist. Either the folder name is not correct, or you did not enter the full path to the folder.
FolderDoesNotExistException(crate::types::error::FolderDoesNotExistException),
/// The client request token is not valid. Either the token is not in a valid format, or the token has been used in a previous request and cannot be reused.
IdempotencyParameterMismatchException(crate::types::error::IdempotencyParameterMismatchException),
/// The Amazon Resource Name (ARN) is not valid. Make sure that you have provided the full ARN for the user who initiated the change for the pull request, and then try again.
InvalidActorArnException(crate::types::error::InvalidActorArnException),
/// The content for the approval rule is not valid.
InvalidApprovalRuleContentException(crate::types::error::InvalidApprovalRuleContentException),
/// The name for the approval rule is not valid.
InvalidApprovalRuleNameException(crate::types::error::InvalidApprovalRuleNameException),
/// The content of the approval rule template is not valid.
InvalidApprovalRuleTemplateContentException(crate::types::error::InvalidApprovalRuleTemplateContentException),
/// The description for the approval rule template is not valid because it exceeds the maximum characters allowed for a description. For more information about limits in CodeCommit, see Quotas in the CodeCommit User Guide.
InvalidApprovalRuleTemplateDescriptionException(crate::types::error::InvalidApprovalRuleTemplateDescriptionException),
/// The name of the approval rule template is not valid. Template names must be between 1 and 100 valid characters in length. For more information about limits in CodeCommit, see Quotas in the CodeCommit User Guide.
InvalidApprovalRuleTemplateNameException(crate::types::error::InvalidApprovalRuleTemplateNameException),
/// The state for the approval is not valid. Valid values include APPROVE and REVOKE.
InvalidApprovalStateException(crate::types::error::InvalidApprovalStateException),
/// The Amazon Resource Name (ARN) is not valid. Make sure that you have provided the full ARN for the author of the pull request, and then try again.
InvalidAuthorArnException(crate::types::error::InvalidAuthorArnException),
/// The specified blob is not valid.
InvalidBlobIdException(crate::types::error::InvalidBlobIdException),
/// The specified reference name is not valid.
InvalidBranchNameException(crate::types::error::InvalidBranchNameException),
/// The client request token is not valid.
InvalidClientRequestTokenException(crate::types::error::InvalidClientRequestTokenException),
/// The comment ID is not in a valid format. Make sure that you have provided the full comment ID.
InvalidCommentIdException(crate::types::error::InvalidCommentIdException),
/// The specified commit is not valid.
InvalidCommitException(crate::types::error::InvalidCommitException),
/// The specified commit ID is not valid.
InvalidCommitIdException(crate::types::error::InvalidCommitIdException),
/// The specified conflict detail level is not valid.
InvalidConflictDetailLevelException(crate::types::error::InvalidConflictDetailLevelException),
/// The specified conflict resolution list is not valid.
InvalidConflictResolutionException(crate::types::error::InvalidConflictResolutionException),
/// The specified conflict resolution strategy is not valid.
InvalidConflictResolutionStrategyException(crate::types::error::InvalidConflictResolutionStrategyException),
/// The specified continuation token is not valid.
InvalidContinuationTokenException(crate::types::error::InvalidContinuationTokenException),
/// The specified deletion parameter is not valid.
InvalidDeletionParameterException(crate::types::error::InvalidDeletionParameterException),
/// The pull request description is not valid. Descriptions cannot be more than 1,000 characters.
InvalidDescriptionException(crate::types::error::InvalidDescriptionException),
/// The destination commit specifier is not valid. You must provide a valid branch name, tag, or full commit ID.
InvalidDestinationCommitSpecifierException(crate::types::error::InvalidDestinationCommitSpecifierException),
/// The specified email address either contains one or more characters that are not allowed, or it exceeds the maximum number of characters allowed for an email address.
InvalidEmailException(crate::types::error::InvalidEmailException),
/// The location of the file is not valid. Make sure that you include the file name and extension.
InvalidFileLocationException(crate::types::error::InvalidFileLocationException),
/// The specified file mode permission is not valid. For a list of valid file mode permissions, see PutFile
.
InvalidFileModeException(crate::types::error::InvalidFileModeException),
/// The position is not valid. Make sure that the line number exists in the version of the file you want to comment on.
InvalidFilePositionException(crate::types::error::InvalidFilePositionException),
/// The specified value for the number of conflict files to return is not valid.
InvalidMaxConflictFilesException(crate::types::error::InvalidMaxConflictFilesException),
/// The specified value for the number of merge hunks to return is not valid.
InvalidMaxMergeHunksException(crate::types::error::InvalidMaxMergeHunksException),
/// The specified number of maximum results is not valid.
InvalidMaxResultsException(crate::types::error::InvalidMaxResultsException),
/// The specified merge option is not valid for this operation. Not all merge strategies are supported for all operations.
InvalidMergeOptionException(crate::types::error::InvalidMergeOptionException),
/// The specified sort order is not valid.
InvalidOrderException(crate::types::error::InvalidOrderException),
/// The override status is not valid. Valid statuses are OVERRIDE and REVOKE.
InvalidOverrideStatusException(crate::types::error::InvalidOverrideStatusException),
/// The parent commit ID is not valid. The commit ID cannot be empty, and must match the head commit ID for the branch of the repository where you want to add or update a file.
InvalidParentCommitIdException(crate::types::error::InvalidParentCommitIdException),
/// The specified path is not valid.
InvalidPathException(crate::types::error::InvalidPathException),
/// The pull request event type is not valid.
InvalidPullRequestEventTypeException(crate::types::error::InvalidPullRequestEventTypeException),
/// The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request is in the specified repository, and then try again.
InvalidPullRequestIdException(crate::types::error::InvalidPullRequestIdException),
/// The pull request status is not valid. The only valid values are OPEN
and CLOSED
.
InvalidPullRequestStatusException(crate::types::error::InvalidPullRequestStatusException),
/// The pull request status update is not valid. The only valid update is from OPEN
to CLOSED
.
InvalidPullRequestStatusUpdateException(crate::types::error::InvalidPullRequestStatusUpdateException),
/// The Amazon Resource Name (ARN) of the user or identity is not valid.
InvalidReactionUserArnException(crate::types::error::InvalidReactionUserArnException),
/// The value of the reaction is not valid. For more information, see the CodeCommit User Guide.
InvalidReactionValueException(crate::types::error::InvalidReactionValueException),
/// The specified reference name format is not valid. Reference names must conform to the Git references format (for example, refs/heads/main). For more information, see Git Internals - Git References or consult your Git documentation.
InvalidReferenceNameException(crate::types::error::InvalidReferenceNameException),
/// Either the enum is not in a valid format, or the specified file version enum is not valid in respect to the current file version.
InvalidRelativeFileVersionEnumException(crate::types::error::InvalidRelativeFileVersionEnumException),
/// Automerge was specified for resolving the conflict, but the replacement type is not valid or content is missing.
InvalidReplacementContentException(crate::types::error::InvalidReplacementContentException),
/// Automerge was specified for resolving the conflict, but the specified replacement type is not valid.
InvalidReplacementTypeException(crate::types::error::InvalidReplacementTypeException),
/// The specified repository description is not valid.
InvalidRepositoryDescriptionException(crate::types::error::InvalidRepositoryDescriptionException),
/// A specified repository name is not valid.
/// This exception occurs only when a specified repository name is not valid. Other exceptions occur when a required repository parameter is missing, or when a specified repository does not exist.
///
InvalidRepositoryNameException(crate::types::error::InvalidRepositoryNameException),
/// One or more branch names specified for the trigger is not valid.
InvalidRepositoryTriggerBranchNameException(crate::types::error::InvalidRepositoryTriggerBranchNameException),
/// The custom data provided for the trigger is not valid.
InvalidRepositoryTriggerCustomDataException(crate::types::error::InvalidRepositoryTriggerCustomDataException),
/// The Amazon Resource Name (ARN) for the trigger is not valid for the specified destination. The most common reason for this error is that the ARN does not meet the requirements for the service type.
InvalidRepositoryTriggerDestinationArnException(crate::types::error::InvalidRepositoryTriggerDestinationArnException),
/// One or more events specified for the trigger is not valid. Check to make sure that all events specified match the requirements for allowed events.
InvalidRepositoryTriggerEventsException(crate::types::error::InvalidRepositoryTriggerEventsException),
/// The name of the trigger is not valid.
InvalidRepositoryTriggerNameException(crate::types::error::InvalidRepositoryTriggerNameException),
/// The Amazon Web Services Region for the trigger target does not match the Amazon Web Services Region for the repository. Triggers must be created in the same Amazon Web Services Region as the target for the trigger.
InvalidRepositoryTriggerRegionException(crate::types::error::InvalidRepositoryTriggerRegionException),
/// The value for the resource ARN is not valid. For more information about resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.
InvalidResourceArnException(crate::types::error::InvalidResourceArnException),
/// The revision ID is not valid. Use GetPullRequest to determine the value.
InvalidRevisionIdException(crate::types::error::InvalidRevisionIdException),
/// The SHA-256 hash signature for the rule content is not valid.
InvalidRuleContentSha256Exception(crate::types::error::InvalidRuleContentSha256Exception),
/// The specified sort by value is not valid.
InvalidSortByException(crate::types::error::InvalidSortByException),
/// The source commit specifier is not valid. You must provide a valid branch name, tag, or full commit ID.
InvalidSourceCommitSpecifierException(crate::types::error::InvalidSourceCommitSpecifierException),
/// The specified tag is not valid. Key names cannot be prefixed with aws:.
InvalidSystemTagUsageException(crate::types::error::InvalidSystemTagUsageException),
/// The list of tags is not valid.
InvalidTagKeysListException(crate::types::error::InvalidTagKeysListException),
/// The map of tags is not valid.
InvalidTagsMapException(crate::types::error::InvalidTagsMapException),
/// The specified target branch is not valid.
InvalidTargetBranchException(crate::types::error::InvalidTargetBranchException),
/// The target for the pull request is not valid. A target must contain the full values for the repository name, source branch, and destination branch for the pull request.
InvalidTargetException(crate::types::error::InvalidTargetException),
/// The targets for the pull request is not valid or not in a valid format. Targets are a list of target objects. Each target object must contain the full values for the repository name, source branch, and destination branch for a pull request.
InvalidTargetsException(crate::types::error::InvalidTargetsException),
/// The title of the pull request is not valid. Pull request titles cannot exceed 100 characters in length.
InvalidTitleException(crate::types::error::InvalidTitleException),
/// The pull request cannot be merged automatically into the destination branch. You must manually merge the branches and resolve any conflicts.
ManualMergeRequiredException(crate::types::error::ManualMergeRequiredException),
/// The number of branches for the trigger was exceeded.
MaximumBranchesExceededException(crate::types::error::MaximumBranchesExceededException),
/// The number of allowed conflict resolution entries was exceeded.
MaximumConflictResolutionEntriesExceededException(crate::types::error::MaximumConflictResolutionEntriesExceededException),
/// The number of files to load exceeds the allowed limit.
MaximumFileContentToLoadExceededException(crate::types::error::MaximumFileContentToLoadExceededException),
/// The number of specified files to change as part of this commit exceeds the maximum number of files that can be changed in a single commit. Consider using a Git client for these changes.
MaximumFileEntriesExceededException(crate::types::error::MaximumFileEntriesExceededException),
/// The number of items to compare between the source or destination branches and the merge base has exceeded the maximum allowed.
MaximumItemsToCompareExceededException(crate::types::error::MaximumItemsToCompareExceededException),
/// The number of approvals required for the approval rule exceeds the maximum number allowed.
MaximumNumberOfApprovalsExceededException(crate::types::error::MaximumNumberOfApprovalsExceededException),
/// You cannot create the pull request because the repository has too many open pull requests. The maximum number of open pull requests for a repository is 1,000. Close one or more open pull requests, and then try again.
MaximumOpenPullRequestsExceededException(crate::types::error::MaximumOpenPullRequestsExceededException),
/// The maximum number of allowed repository names was exceeded. Currently, this number is 100.
MaximumRepositoryNamesExceededException(crate::types::error::MaximumRepositoryNamesExceededException),
/// The number of triggers allowed for the repository was exceeded.
MaximumRepositoryTriggersExceededException(crate::types::error::MaximumRepositoryTriggersExceededException),
/// The maximum number of approval rule templates for a repository has been exceeded. You cannot associate more than 25 approval rule templates with a repository.
MaximumRuleTemplatesAssociatedWithRepositoryException(crate::types::error::MaximumRuleTemplatesAssociatedWithRepositoryException),
/// A merge option or stategy is required, and none was provided.
MergeOptionRequiredException(crate::types::error::MergeOptionRequiredException),
/// More than one conflict resolution entries exists for the conflict. A conflict can have only one conflict resolution entry.
MultipleConflictResolutionEntriesException(crate::types::error::MultipleConflictResolutionEntriesException),
/// You cannot include more than one repository in a pull request. Make sure you have specified only one repository name in your request, and then try again.
MultipleRepositoriesInPullRequestException(crate::types::error::MultipleRepositoriesInPullRequestException),
/// The user name is not valid because it has exceeded the character limit for author names.
NameLengthExceededException(crate::types::error::NameLengthExceededException),
/// The commit cannot be created because no changes will be made to the repository as a result of this commit. A commit must contain at least one change.
NoChangeException(crate::types::error::NoChangeException),
/// The maximum number of approval rule templates has been exceeded for this Amazon Web Services Region.
NumberOfRuleTemplatesExceededException(crate::types::error::NumberOfRuleTemplatesExceededException),
/// The approval rule cannot be added. The pull request has the maximum number of approval rules associated with it.
NumberOfRulesExceededException(crate::types::error::NumberOfRulesExceededException),
/// The requested action is not allowed.
OperationNotAllowedException(crate::types::error::OperationNotAllowedException),
/// The pull request has already had its approval rules set to override.
OverrideAlreadySetException(crate::types::error::OverrideAlreadySetException),
/// An override status is required, but no value was provided. Valid values include OVERRIDE and REVOKE.
OverrideStatusRequiredException(crate::types::error::OverrideStatusRequiredException),
/// The parent commit ID is not valid because it does not exist. The specified parent commit ID does not exist in the specified branch of the repository.
ParentCommitDoesNotExistException(crate::types::error::ParentCommitDoesNotExistException),
/// The file could not be added because the provided parent commit ID is not the current tip of the specified branch. To view the full commit ID of the current head of the branch, use GetBranch
.
ParentCommitIdOutdatedException(crate::types::error::ParentCommitIdOutdatedException),
/// A parent commit ID is required. To view the full commit ID of a branch in a repository, use GetBranch
or a Git command (for example, git pull or git log).
ParentCommitIdRequiredException(crate::types::error::ParentCommitIdRequiredException),
/// The specified path does not exist.
PathDoesNotExistException(crate::types::error::PathDoesNotExistException),
/// The folderPath for a location cannot be null.
PathRequiredException(crate::types::error::PathRequiredException),
/// The pull request status cannot be updated because it is already closed.
PullRequestAlreadyClosedException(crate::types::error::PullRequestAlreadyClosedException),
/// The pull request cannot be merged because one or more approval rules applied to the pull request have conditions that have not been met.
PullRequestApprovalRulesNotSatisfiedException(crate::types::error::PullRequestApprovalRulesNotSatisfiedException),
/// The approval cannot be applied because the user approving the pull request matches the user who created the pull request. You cannot approve a pull request that you created.
PullRequestCannotBeApprovedByAuthorException(crate::types::error::PullRequestCannotBeApprovedByAuthorException),
/// The pull request ID could not be found. Make sure that you have specified the correct repository name and pull request ID, and then try again.
PullRequestDoesNotExistException(crate::types::error::PullRequestDoesNotExistException),
/// A pull request ID is required, but none was provided.
PullRequestIdRequiredException(crate::types::error::PullRequestIdRequiredException),
/// A pull request status is required, but none was provided.
PullRequestStatusRequiredException(crate::types::error::PullRequestStatusRequiredException),
/// The commit cannot be created because one or more files specified in the commit reference both a file and a folder.
PutFileEntryConflictException(crate::types::error::PutFileEntryConflictException),
/// The number of reactions has been exceeded. Reactions are limited to one reaction per user for each individual comment ID.
ReactionLimitExceededException(crate::types::error::ReactionLimitExceededException),
/// A reaction value is required.
ReactionValueRequiredException(crate::types::error::ReactionValueRequiredException),
/// The specified reference does not exist. You must provide a full commit ID.
ReferenceDoesNotExistException(crate::types::error::ReferenceDoesNotExistException),
/// A reference name is required, but none was provided.
ReferenceNameRequiredException(crate::types::error::ReferenceNameRequiredException),
/// The specified reference is not a supported type.
ReferenceTypeNotSupportedException(crate::types::error::ReferenceTypeNotSupportedException),
/// USE_NEW_CONTENT was specified, but no replacement content has been provided.
ReplacementContentRequiredException(crate::types::error::ReplacementContentRequiredException),
/// A replacement type is required.
ReplacementTypeRequiredException(crate::types::error::ReplacementTypeRequiredException),
/// The specified repository does not exist.
RepositoryDoesNotExistException(crate::types::error::RepositoryDoesNotExistException),
/// A repository resource limit was exceeded.
RepositoryLimitExceededException(crate::types::error::RepositoryLimitExceededException),
/// The specified repository name already exists.
RepositoryNameExistsException(crate::types::error::RepositoryNameExistsException),
/// A repository name is required, but was not specified.
RepositoryNameRequiredException(crate::types::error::RepositoryNameRequiredException),
/// At least one repository name object is required, but was not specified.
RepositoryNamesRequiredException(crate::types::error::RepositoryNamesRequiredException),
/// The repository does not contain any pull requests with that pull request ID. Use GetPullRequest to verify the correct repository name for the pull request ID.
RepositoryNotAssociatedWithPullRequestException(crate::types::error::RepositoryNotAssociatedWithPullRequestException),
/// At least one branch name is required, but was not specified in the trigger configuration.
RepositoryTriggerBranchNameListRequiredException(crate::types::error::RepositoryTriggerBranchNameListRequiredException),
/// A destination ARN for the target service for the trigger is required, but was not specified.
RepositoryTriggerDestinationArnRequiredException(crate::types::error::RepositoryTriggerDestinationArnRequiredException),
/// At least one event for the trigger is required, but was not specified.
RepositoryTriggerEventsListRequiredException(crate::types::error::RepositoryTriggerEventsListRequiredException),
/// A name for the trigger is required, but was not specified.
RepositoryTriggerNameRequiredException(crate::types::error::RepositoryTriggerNameRequiredException),
/// The list of triggers for the repository is required, but was not specified.
RepositoryTriggersListRequiredException(crate::types::error::RepositoryTriggersListRequiredException),
/// A valid Amazon Resource Name (ARN) for an CodeCommit resource is required. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.
ResourceArnRequiredException(crate::types::error::ResourceArnRequiredException),
/// The commit cannot be created because one of the changes specifies copying or moving a .gitkeep file.
RestrictedSourceFileException(crate::types::error::RestrictedSourceFileException),
/// A revision ID is required, but was not provided.
RevisionIdRequiredException(crate::types::error::RevisionIdRequiredException),
/// The revision ID provided in the request does not match the current revision ID. Use GetPullRequest to retrieve the current revision ID.
RevisionNotCurrentException(crate::types::error::RevisionNotCurrentException),
/// The file was not added or updated because the content of the file is exactly the same as the content of that file in the repository and branch that you specified.
SameFileContentException(crate::types::error::SameFileContentException),
/// The commit cannot be created because one or more changes in this commit duplicate actions in the same file path. For example, you cannot make the same delete request to the same file in the same file path twice, or make a delete request and a move request to the same file as part of the same commit.
SamePathRequestException(crate::types::error::SamePathRequestException),
/// The source branch and destination branch for the pull request are the same. You must specify different branches for the source and destination.
SourceAndDestinationAreSameException(crate::types::error::SourceAndDestinationAreSameException),
/// The commit cannot be created because no source files or file content have been specified for the commit.
SourceFileOrContentRequiredException(crate::types::error::SourceFileOrContentRequiredException),
/// A list of tag keys is required. The list cannot be empty or null.
TagKeysListRequiredException(crate::types::error::TagKeysListRequiredException),
/// The tag policy is not valid.
TagPolicyException(crate::types::error::TagPolicyException),
/// A map of tags is required.
TagsMapRequiredException(crate::types::error::TagsMapRequiredException),
/// A pull request target is required. It cannot be empty or null. A pull request target must contain the full values for the repository name, source branch, and destination branch for the pull request.
TargetRequiredException(crate::types::error::TargetRequiredException),
/// An array of target objects is required. It cannot be empty or null.
TargetsRequiredException(crate::types::error::TargetsRequiredException),
/// The tip of the source branch in the destination repository does not match the tip of the source branch specified in your request. The pull request might have been updated. Make sure that you have the latest changes.
TipOfSourceReferenceIsDifferentException(crate::types::error::TipOfSourceReferenceIsDifferentException),
/// The divergence between the tips of the provided commit specifiers is too great to determine whether there might be any merge conflicts. Locally compare the specifiers using git diff
or a diff tool.
TipsDivergenceExceededException(crate::types::error::TipsDivergenceExceededException),
/// A pull request title is required. It cannot be empty or null.
TitleRequiredException(crate::types::error::TitleRequiredException),
/// The maximum number of tags for an CodeCommit resource has been exceeded.
TooManyTagsException(crate::types::error::TooManyTagsException),
/// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
#[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
variable wildcard pattern and check `.code()`:
\
`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
\
See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
Unhandled(crate::error::sealed_unhandled::Unhandled),
}
impl ::std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::ActorDoesNotExistException(inner) => inner.fmt(f),
Error::ApprovalRuleContentRequiredException(inner) => inner.fmt(f),
Error::ApprovalRuleDoesNotExistException(inner) => inner.fmt(f),
Error::ApprovalRuleNameAlreadyExistsException(inner) => inner.fmt(f),
Error::ApprovalRuleNameRequiredException(inner) => inner.fmt(f),
Error::ApprovalRuleTemplateContentRequiredException(inner) => inner.fmt(f),
Error::ApprovalRuleTemplateDoesNotExistException(inner) => inner.fmt(f),
Error::ApprovalRuleTemplateInUseException(inner) => inner.fmt(f),
Error::ApprovalRuleTemplateNameAlreadyExistsException(inner) => inner.fmt(f),
Error::ApprovalRuleTemplateNameRequiredException(inner) => inner.fmt(f),
Error::ApprovalStateRequiredException(inner) => inner.fmt(f),
Error::AuthorDoesNotExistException(inner) => inner.fmt(f),
Error::BeforeCommitIdAndAfterCommitIdAreSameException(inner) => inner.fmt(f),
Error::BlobIdDoesNotExistException(inner) => inner.fmt(f),
Error::BlobIdRequiredException(inner) => inner.fmt(f),
Error::BranchDoesNotExistException(inner) => inner.fmt(f),
Error::BranchNameExistsException(inner) => inner.fmt(f),
Error::BranchNameIsTagNameException(inner) => inner.fmt(f),
Error::BranchNameRequiredException(inner) => inner.fmt(f),
Error::CannotDeleteApprovalRuleFromTemplateException(inner) => inner.fmt(f),
Error::CannotModifyApprovalRuleFromTemplateException(inner) => inner.fmt(f),
Error::ClientRequestTokenRequiredException(inner) => inner.fmt(f),
Error::CommentContentRequiredException(inner) => inner.fmt(f),
Error::CommentContentSizeLimitExceededException(inner) => inner.fmt(f),
Error::CommentDeletedException(inner) => inner.fmt(f),
Error::CommentDoesNotExistException(inner) => inner.fmt(f),
Error::CommentIdRequiredException(inner) => inner.fmt(f),
Error::CommentNotCreatedByCallerException(inner) => inner.fmt(f),
Error::CommitDoesNotExistException(inner) => inner.fmt(f),
Error::CommitIdDoesNotExistException(inner) => inner.fmt(f),
Error::CommitIdRequiredException(inner) => inner.fmt(f),
Error::CommitIdsLimitExceededException(inner) => inner.fmt(f),
Error::CommitIdsListRequiredException(inner) => inner.fmt(f),
Error::CommitMessageLengthExceededException(inner) => inner.fmt(f),
Error::CommitRequiredException(inner) => inner.fmt(f),
Error::ConcurrentReferenceUpdateException(inner) => inner.fmt(f),
Error::DefaultBranchCannotBeDeletedException(inner) => inner.fmt(f),
Error::DirectoryNameConflictsWithFileNameException(inner) => inner.fmt(f),
Error::EncryptionIntegrityChecksFailedException(inner) => inner.fmt(f),
Error::EncryptionKeyAccessDeniedException(inner) => inner.fmt(f),
Error::EncryptionKeyDisabledException(inner) => inner.fmt(f),
Error::EncryptionKeyInvalidIdException(inner) => inner.fmt(f),
Error::EncryptionKeyInvalidUsageException(inner) => inner.fmt(f),
Error::EncryptionKeyNotFoundException(inner) => inner.fmt(f),
Error::EncryptionKeyRequiredException(inner) => inner.fmt(f),
Error::EncryptionKeyUnavailableException(inner) => inner.fmt(f),
Error::FileContentAndSourceFileSpecifiedException(inner) => inner.fmt(f),
Error::FileContentRequiredException(inner) => inner.fmt(f),
Error::FileContentSizeLimitExceededException(inner) => inner.fmt(f),
Error::FileDoesNotExistException(inner) => inner.fmt(f),
Error::FileEntryRequiredException(inner) => inner.fmt(f),
Error::FileModeRequiredException(inner) => inner.fmt(f),
Error::FileNameConflictsWithDirectoryNameException(inner) => inner.fmt(f),
Error::FilePathConflictsWithSubmodulePathException(inner) => inner.fmt(f),
Error::FileTooLargeException(inner) => inner.fmt(f),
Error::FolderContentSizeLimitExceededException(inner) => inner.fmt(f),
Error::FolderDoesNotExistException(inner) => inner.fmt(f),
Error::IdempotencyParameterMismatchException(inner) => inner.fmt(f),
Error::InvalidActorArnException(inner) => inner.fmt(f),
Error::InvalidApprovalRuleContentException(inner) => inner.fmt(f),
Error::InvalidApprovalRuleNameException(inner) => inner.fmt(f),
Error::InvalidApprovalRuleTemplateContentException(inner) => inner.fmt(f),
Error::InvalidApprovalRuleTemplateDescriptionException(inner) => inner.fmt(f),
Error::InvalidApprovalRuleTemplateNameException(inner) => inner.fmt(f),
Error::InvalidApprovalStateException(inner) => inner.fmt(f),
Error::InvalidAuthorArnException(inner) => inner.fmt(f),
Error::InvalidBlobIdException(inner) => inner.fmt(f),
Error::InvalidBranchNameException(inner) => inner.fmt(f),
Error::InvalidClientRequestTokenException(inner) => inner.fmt(f),
Error::InvalidCommentIdException(inner) => inner.fmt(f),
Error::InvalidCommitException(inner) => inner.fmt(f),
Error::InvalidCommitIdException(inner) => inner.fmt(f),
Error::InvalidConflictDetailLevelException(inner) => inner.fmt(f),
Error::InvalidConflictResolutionException(inner) => inner.fmt(f),
Error::InvalidConflictResolutionStrategyException(inner) => inner.fmt(f),
Error::InvalidContinuationTokenException(inner) => inner.fmt(f),
Error::InvalidDeletionParameterException(inner) => inner.fmt(f),
Error::InvalidDescriptionException(inner) => inner.fmt(f),
Error::InvalidDestinationCommitSpecifierException(inner) => inner.fmt(f),
Error::InvalidEmailException(inner) => inner.fmt(f),
Error::InvalidFileLocationException(inner) => inner.fmt(f),
Error::InvalidFileModeException(inner) => inner.fmt(f),
Error::InvalidFilePositionException(inner) => inner.fmt(f),
Error::InvalidMaxConflictFilesException(inner) => inner.fmt(f),
Error::InvalidMaxMergeHunksException(inner) => inner.fmt(f),
Error::InvalidMaxResultsException(inner) => inner.fmt(f),
Error::InvalidMergeOptionException(inner) => inner.fmt(f),
Error::InvalidOrderException(inner) => inner.fmt(f),
Error::InvalidOverrideStatusException(inner) => inner.fmt(f),
Error::InvalidParentCommitIdException(inner) => inner.fmt(f),
Error::InvalidPathException(inner) => inner.fmt(f),
Error::InvalidPullRequestEventTypeException(inner) => inner.fmt(f),
Error::InvalidPullRequestIdException(inner) => inner.fmt(f),
Error::InvalidPullRequestStatusException(inner) => inner.fmt(f),
Error::InvalidPullRequestStatusUpdateException(inner) => inner.fmt(f),
Error::InvalidReactionUserArnException(inner) => inner.fmt(f),
Error::InvalidReactionValueException(inner) => inner.fmt(f),
Error::InvalidReferenceNameException(inner) => inner.fmt(f),
Error::InvalidRelativeFileVersionEnumException(inner) => inner.fmt(f),
Error::InvalidReplacementContentException(inner) => inner.fmt(f),
Error::InvalidReplacementTypeException(inner) => inner.fmt(f),
Error::InvalidRepositoryDescriptionException(inner) => inner.fmt(f),
Error::InvalidRepositoryNameException(inner) => inner.fmt(f),
Error::InvalidRepositoryTriggerBranchNameException(inner) => inner.fmt(f),
Error::InvalidRepositoryTriggerCustomDataException(inner) => inner.fmt(f),
Error::InvalidRepositoryTriggerDestinationArnException(inner) => inner.fmt(f),
Error::InvalidRepositoryTriggerEventsException(inner) => inner.fmt(f),
Error::InvalidRepositoryTriggerNameException(inner) => inner.fmt(f),
Error::InvalidRepositoryTriggerRegionException(inner) => inner.fmt(f),
Error::InvalidResourceArnException(inner) => inner.fmt(f),
Error::InvalidRevisionIdException(inner) => inner.fmt(f),
Error::InvalidRuleContentSha256Exception(inner) => inner.fmt(f),
Error::InvalidSortByException(inner) => inner.fmt(f),
Error::InvalidSourceCommitSpecifierException(inner) => inner.fmt(f),
Error::InvalidSystemTagUsageException(inner) => inner.fmt(f),
Error::InvalidTagKeysListException(inner) => inner.fmt(f),
Error::InvalidTagsMapException(inner) => inner.fmt(f),
Error::InvalidTargetBranchException(inner) => inner.fmt(f),
Error::InvalidTargetException(inner) => inner.fmt(f),
Error::InvalidTargetsException(inner) => inner.fmt(f),
Error::InvalidTitleException(inner) => inner.fmt(f),
Error::ManualMergeRequiredException(inner) => inner.fmt(f),
Error::MaximumBranchesExceededException(inner) => inner.fmt(f),
Error::MaximumConflictResolutionEntriesExceededException(inner) => inner.fmt(f),
Error::MaximumFileContentToLoadExceededException(inner) => inner.fmt(f),
Error::MaximumFileEntriesExceededException(inner) => inner.fmt(f),
Error::MaximumItemsToCompareExceededException(inner) => inner.fmt(f),
Error::MaximumNumberOfApprovalsExceededException(inner) => inner.fmt(f),
Error::MaximumOpenPullRequestsExceededException(inner) => inner.fmt(f),
Error::MaximumRepositoryNamesExceededException(inner) => inner.fmt(f),
Error::MaximumRepositoryTriggersExceededException(inner) => inner.fmt(f),
Error::MaximumRuleTemplatesAssociatedWithRepositoryException(inner) => inner.fmt(f),
Error::MergeOptionRequiredException(inner) => inner.fmt(f),
Error::MultipleConflictResolutionEntriesException(inner) => inner.fmt(f),
Error::MultipleRepositoriesInPullRequestException(inner) => inner.fmt(f),
Error::NameLengthExceededException(inner) => inner.fmt(f),
Error::NoChangeException(inner) => inner.fmt(f),
Error::NumberOfRuleTemplatesExceededException(inner) => inner.fmt(f),
Error::NumberOfRulesExceededException(inner) => inner.fmt(f),
Error::OperationNotAllowedException(inner) => inner.fmt(f),
Error::OverrideAlreadySetException(inner) => inner.fmt(f),
Error::OverrideStatusRequiredException(inner) => inner.fmt(f),
Error::ParentCommitDoesNotExistException(inner) => inner.fmt(f),
Error::ParentCommitIdOutdatedException(inner) => inner.fmt(f),
Error::ParentCommitIdRequiredException(inner) => inner.fmt(f),
Error::PathDoesNotExistException(inner) => inner.fmt(f),
Error::PathRequiredException(inner) => inner.fmt(f),
Error::PullRequestAlreadyClosedException(inner) => inner.fmt(f),
Error::PullRequestApprovalRulesNotSatisfiedException(inner) => inner.fmt(f),
Error::PullRequestCannotBeApprovedByAuthorException(inner) => inner.fmt(f),
Error::PullRequestDoesNotExistException(inner) => inner.fmt(f),
Error::PullRequestIdRequiredException(inner) => inner.fmt(f),
Error::PullRequestStatusRequiredException(inner) => inner.fmt(f),
Error::PutFileEntryConflictException(inner) => inner.fmt(f),
Error::ReactionLimitExceededException(inner) => inner.fmt(f),
Error::ReactionValueRequiredException(inner) => inner.fmt(f),
Error::ReferenceDoesNotExistException(inner) => inner.fmt(f),
Error::ReferenceNameRequiredException(inner) => inner.fmt(f),
Error::ReferenceTypeNotSupportedException(inner) => inner.fmt(f),
Error::ReplacementContentRequiredException(inner) => inner.fmt(f),
Error::ReplacementTypeRequiredException(inner) => inner.fmt(f),
Error::RepositoryDoesNotExistException(inner) => inner.fmt(f),
Error::RepositoryLimitExceededException(inner) => inner.fmt(f),
Error::RepositoryNameExistsException(inner) => inner.fmt(f),
Error::RepositoryNameRequiredException(inner) => inner.fmt(f),
Error::RepositoryNamesRequiredException(inner) => inner.fmt(f),
Error::RepositoryNotAssociatedWithPullRequestException(inner) => inner.fmt(f),
Error::RepositoryTriggerBranchNameListRequiredException(inner) => inner.fmt(f),
Error::RepositoryTriggerDestinationArnRequiredException(inner) => inner.fmt(f),
Error::RepositoryTriggerEventsListRequiredException(inner) => inner.fmt(f),
Error::RepositoryTriggerNameRequiredException(inner) => inner.fmt(f),
Error::RepositoryTriggersListRequiredException(inner) => inner.fmt(f),
Error::ResourceArnRequiredException(inner) => inner.fmt(f),
Error::RestrictedSourceFileException(inner) => inner.fmt(f),
Error::RevisionIdRequiredException(inner) => inner.fmt(f),
Error::RevisionNotCurrentException(inner) => inner.fmt(f),
Error::SameFileContentException(inner) => inner.fmt(f),
Error::SamePathRequestException(inner) => inner.fmt(f),
Error::SourceAndDestinationAreSameException(inner) => inner.fmt(f),
Error::SourceFileOrContentRequiredException(inner) => inner.fmt(f),
Error::TagKeysListRequiredException(inner) => inner.fmt(f),
Error::TagPolicyException(inner) => inner.fmt(f),
Error::TagsMapRequiredException(inner) => inner.fmt(f),
Error::TargetRequiredException(inner) => inner.fmt(f),
Error::TargetsRequiredException(inner) => inner.fmt(f),
Error::TipOfSourceReferenceIsDifferentException(inner) => inner.fmt(f),
Error::TipsDivergenceExceededException(inner) => inner.fmt(f),
Error::TitleRequiredException(inner) => inner.fmt(f),
Error::TooManyTagsException(inner) => inner.fmt(f),
Error::Unhandled(_) => {
if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
write!(f, "unhandled error ({code})")
} else {
f.write_str("unhandled error")
}
}
}
}
}
impl From<::aws_smithy_types::error::operation::BuildError> for Error {
fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
source: value.into(),
meta: ::std::default::Default::default(),
})
}
}
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
match self {
Self::ActorDoesNotExistException(inner) => inner.meta(),
Self::ApprovalRuleContentRequiredException(inner) => inner.meta(),
Self::ApprovalRuleDoesNotExistException(inner) => inner.meta(),
Self::ApprovalRuleNameAlreadyExistsException(inner) => inner.meta(),
Self::ApprovalRuleNameRequiredException(inner) => inner.meta(),
Self::ApprovalRuleTemplateContentRequiredException(inner) => inner.meta(),
Self::ApprovalRuleTemplateDoesNotExistException(inner) => inner.meta(),
Self::ApprovalRuleTemplateInUseException(inner) => inner.meta(),
Self::ApprovalRuleTemplateNameAlreadyExistsException(inner) => inner.meta(),
Self::ApprovalRuleTemplateNameRequiredException(inner) => inner.meta(),
Self::ApprovalStateRequiredException(inner) => inner.meta(),
Self::AuthorDoesNotExistException(inner) => inner.meta(),
Self::BeforeCommitIdAndAfterCommitIdAreSameException(inner) => inner.meta(),
Self::BlobIdDoesNotExistException(inner) => inner.meta(),
Self::BlobIdRequiredException(inner) => inner.meta(),
Self::BranchDoesNotExistException(inner) => inner.meta(),
Self::BranchNameExistsException(inner) => inner.meta(),
Self::BranchNameIsTagNameException(inner) => inner.meta(),
Self::BranchNameRequiredException(inner) => inner.meta(),
Self::CannotDeleteApprovalRuleFromTemplateException(inner) => inner.meta(),
Self::CannotModifyApprovalRuleFromTemplateException(inner) => inner.meta(),
Self::ClientRequestTokenRequiredException(inner) => inner.meta(),
Self::CommentContentRequiredException(inner) => inner.meta(),
Self::CommentContentSizeLimitExceededException(inner) => inner.meta(),
Self::CommentDeletedException(inner) => inner.meta(),
Self::CommentDoesNotExistException(inner) => inner.meta(),
Self::CommentIdRequiredException(inner) => inner.meta(),
Self::CommentNotCreatedByCallerException(inner) => inner.meta(),
Self::CommitDoesNotExistException(inner) => inner.meta(),
Self::CommitIdDoesNotExistException(inner) => inner.meta(),
Self::CommitIdRequiredException(inner) => inner.meta(),
Self::CommitIdsLimitExceededException(inner) => inner.meta(),
Self::CommitIdsListRequiredException(inner) => inner.meta(),
Self::CommitMessageLengthExceededException(inner) => inner.meta(),
Self::CommitRequiredException(inner) => inner.meta(),
Self::ConcurrentReferenceUpdateException(inner) => inner.meta(),
Self::DefaultBranchCannotBeDeletedException(inner) => inner.meta(),
Self::DirectoryNameConflictsWithFileNameException(inner) => inner.meta(),
Self::EncryptionIntegrityChecksFailedException(inner) => inner.meta(),
Self::EncryptionKeyAccessDeniedException(inner) => inner.meta(),
Self::EncryptionKeyDisabledException(inner) => inner.meta(),
Self::EncryptionKeyInvalidIdException(inner) => inner.meta(),
Self::EncryptionKeyInvalidUsageException(inner) => inner.meta(),
Self::EncryptionKeyNotFoundException(inner) => inner.meta(),
Self::EncryptionKeyRequiredException(inner) => inner.meta(),
Self::EncryptionKeyUnavailableException(inner) => inner.meta(),
Self::FileContentAndSourceFileSpecifiedException(inner) => inner.meta(),
Self::FileContentRequiredException(inner) => inner.meta(),
Self::FileContentSizeLimitExceededException(inner) => inner.meta(),
Self::FileDoesNotExistException(inner) => inner.meta(),
Self::FileEntryRequiredException(inner) => inner.meta(),
Self::FileModeRequiredException(inner) => inner.meta(),
Self::FileNameConflictsWithDirectoryNameException(inner) => inner.meta(),
Self::FilePathConflictsWithSubmodulePathException(inner) => inner.meta(),
Self::FileTooLargeException(inner) => inner.meta(),
Self::FolderContentSizeLimitExceededException(inner) => inner.meta(),
Self::FolderDoesNotExistException(inner) => inner.meta(),
Self::IdempotencyParameterMismatchException(inner) => inner.meta(),
Self::InvalidActorArnException(inner) => inner.meta(),
Self::InvalidApprovalRuleContentException(inner) => inner.meta(),
Self::InvalidApprovalRuleNameException(inner) => inner.meta(),
Self::InvalidApprovalRuleTemplateContentException(inner) => inner.meta(),
Self::InvalidApprovalRuleTemplateDescriptionException(inner) => inner.meta(),
Self::InvalidApprovalRuleTemplateNameException(inner) => inner.meta(),
Self::InvalidApprovalStateException(inner) => inner.meta(),
Self::InvalidAuthorArnException(inner) => inner.meta(),
Self::InvalidBlobIdException(inner) => inner.meta(),
Self::InvalidBranchNameException(inner) => inner.meta(),
Self::InvalidClientRequestTokenException(inner) => inner.meta(),
Self::InvalidCommentIdException(inner) => inner.meta(),
Self::InvalidCommitException(inner) => inner.meta(),
Self::InvalidCommitIdException(inner) => inner.meta(),
Self::InvalidConflictDetailLevelException(inner) => inner.meta(),
Self::InvalidConflictResolutionException(inner) => inner.meta(),
Self::InvalidConflictResolutionStrategyException(inner) => inner.meta(),
Self::InvalidContinuationTokenException(inner) => inner.meta(),
Self::InvalidDeletionParameterException(inner) => inner.meta(),
Self::InvalidDescriptionException(inner) => inner.meta(),
Self::InvalidDestinationCommitSpecifierException(inner) => inner.meta(),
Self::InvalidEmailException(inner) => inner.meta(),
Self::InvalidFileLocationException(inner) => inner.meta(),
Self::InvalidFileModeException(inner) => inner.meta(),
Self::InvalidFilePositionException(inner) => inner.meta(),
Self::InvalidMaxConflictFilesException(inner) => inner.meta(),
Self::InvalidMaxMergeHunksException(inner) => inner.meta(),
Self::InvalidMaxResultsException(inner) => inner.meta(),
Self::InvalidMergeOptionException(inner) => inner.meta(),
Self::InvalidOrderException(inner) => inner.meta(),
Self::InvalidOverrideStatusException(inner) => inner.meta(),
Self::InvalidParentCommitIdException(inner) => inner.meta(),
Self::InvalidPathException(inner) => inner.meta(),
Self::InvalidPullRequestEventTypeException(inner) => inner.meta(),
Self::InvalidPullRequestIdException(inner) => inner.meta(),
Self::InvalidPullRequestStatusException(inner) => inner.meta(),
Self::InvalidPullRequestStatusUpdateException(inner) => inner.meta(),
Self::InvalidReactionUserArnException(inner) => inner.meta(),
Self::InvalidReactionValueException(inner) => inner.meta(),
Self::InvalidReferenceNameException(inner) => inner.meta(),
Self::InvalidRelativeFileVersionEnumException(inner) => inner.meta(),
Self::InvalidReplacementContentException(inner) => inner.meta(),
Self::InvalidReplacementTypeException(inner) => inner.meta(),
Self::InvalidRepositoryDescriptionException(inner) => inner.meta(),
Self::InvalidRepositoryNameException(inner) => inner.meta(),
Self::InvalidRepositoryTriggerBranchNameException(inner) => inner.meta(),
Self::InvalidRepositoryTriggerCustomDataException(inner) => inner.meta(),
Self::InvalidRepositoryTriggerDestinationArnException(inner) => inner.meta(),
Self::InvalidRepositoryTriggerEventsException(inner) => inner.meta(),
Self::InvalidRepositoryTriggerNameException(inner) => inner.meta(),
Self::InvalidRepositoryTriggerRegionException(inner) => inner.meta(),
Self::InvalidResourceArnException(inner) => inner.meta(),
Self::InvalidRevisionIdException(inner) => inner.meta(),
Self::InvalidRuleContentSha256Exception(inner) => inner.meta(),
Self::InvalidSortByException(inner) => inner.meta(),
Self::InvalidSourceCommitSpecifierException(inner) => inner.meta(),
Self::InvalidSystemTagUsageException(inner) => inner.meta(),
Self::InvalidTagKeysListException(inner) => inner.meta(),
Self::InvalidTagsMapException(inner) => inner.meta(),
Self::InvalidTargetBranchException(inner) => inner.meta(),
Self::InvalidTargetException(inner) => inner.meta(),
Self::InvalidTargetsException(inner) => inner.meta(),
Self::InvalidTitleException(inner) => inner.meta(),
Self::ManualMergeRequiredException(inner) => inner.meta(),
Self::MaximumBranchesExceededException(inner) => inner.meta(),
Self::MaximumConflictResolutionEntriesExceededException(inner) => inner.meta(),
Self::MaximumFileContentToLoadExceededException(inner) => inner.meta(),
Self::MaximumFileEntriesExceededException(inner) => inner.meta(),
Self::MaximumItemsToCompareExceededException(inner) => inner.meta(),
Self::MaximumNumberOfApprovalsExceededException(inner) => inner.meta(),
Self::MaximumOpenPullRequestsExceededException(inner) => inner.meta(),
Self::MaximumRepositoryNamesExceededException(inner) => inner.meta(),
Self::MaximumRepositoryTriggersExceededException(inner) => inner.meta(),
Self::MaximumRuleTemplatesAssociatedWithRepositoryException(inner) => inner.meta(),
Self::MergeOptionRequiredException(inner) => inner.meta(),
Self::MultipleConflictResolutionEntriesException(inner) => inner.meta(),
Self::MultipleRepositoriesInPullRequestException(inner) => inner.meta(),
Self::NameLengthExceededException(inner) => inner.meta(),
Self::NoChangeException(inner) => inner.meta(),
Self::NumberOfRuleTemplatesExceededException(inner) => inner.meta(),
Self::NumberOfRulesExceededException(inner) => inner.meta(),
Self::OperationNotAllowedException(inner) => inner.meta(),
Self::OverrideAlreadySetException(inner) => inner.meta(),
Self::OverrideStatusRequiredException(inner) => inner.meta(),
Self::ParentCommitDoesNotExistException(inner) => inner.meta(),
Self::ParentCommitIdOutdatedException(inner) => inner.meta(),
Self::ParentCommitIdRequiredException(inner) => inner.meta(),
Self::PathDoesNotExistException(inner) => inner.meta(),
Self::PathRequiredException(inner) => inner.meta(),
Self::PullRequestAlreadyClosedException(inner) => inner.meta(),
Self::PullRequestApprovalRulesNotSatisfiedException(inner) => inner.meta(),
Self::PullRequestCannotBeApprovedByAuthorException(inner) => inner.meta(),
Self::PullRequestDoesNotExistException(inner) => inner.meta(),
Self::PullRequestIdRequiredException(inner) => inner.meta(),
Self::PullRequestStatusRequiredException(inner) => inner.meta(),
Self::PutFileEntryConflictException(inner) => inner.meta(),
Self::ReactionLimitExceededException(inner) => inner.meta(),
Self::ReactionValueRequiredException(inner) => inner.meta(),
Self::ReferenceDoesNotExistException(inner) => inner.meta(),
Self::ReferenceNameRequiredException(inner) => inner.meta(),
Self::ReferenceTypeNotSupportedException(inner) => inner.meta(),
Self::ReplacementContentRequiredException(inner) => inner.meta(),
Self::ReplacementTypeRequiredException(inner) => inner.meta(),
Self::RepositoryDoesNotExistException(inner) => inner.meta(),
Self::RepositoryLimitExceededException(inner) => inner.meta(),
Self::RepositoryNameExistsException(inner) => inner.meta(),
Self::RepositoryNameRequiredException(inner) => inner.meta(),
Self::RepositoryNamesRequiredException(inner) => inner.meta(),
Self::RepositoryNotAssociatedWithPullRequestException(inner) => inner.meta(),
Self::RepositoryTriggerBranchNameListRequiredException(inner) => inner.meta(),
Self::RepositoryTriggerDestinationArnRequiredException(inner) => inner.meta(),
Self::RepositoryTriggerEventsListRequiredException(inner) => inner.meta(),
Self::RepositoryTriggerNameRequiredException(inner) => inner.meta(),
Self::RepositoryTriggersListRequiredException(inner) => inner.meta(),
Self::ResourceArnRequiredException(inner) => inner.meta(),
Self::RestrictedSourceFileException(inner) => inner.meta(),
Self::RevisionIdRequiredException(inner) => inner.meta(),
Self::RevisionNotCurrentException(inner) => inner.meta(),
Self::SameFileContentException(inner) => inner.meta(),
Self::SamePathRequestException(inner) => inner.meta(),
Self::SourceAndDestinationAreSameException(inner) => inner.meta(),
Self::SourceFileOrContentRequiredException(inner) => inner.meta(),
Self::TagKeysListRequiredException(inner) => inner.meta(),
Self::TagPolicyException(inner) => inner.meta(),
Self::TagsMapRequiredException(inner) => inner.meta(),
Self::TargetRequiredException(inner) => inner.meta(),
Self::TargetsRequiredException(inner) => inner.meta(),
Self::TipOfSourceReferenceIsDifferentException(inner) => inner.meta(),
Self::TipsDivergenceExceededException(inner) => inner.meta(),
Self::TitleRequiredException(inner) => inner.meta(),
Self::TooManyTagsException(inner) => inner.meta(),
Self::Unhandled(inner) => &inner.meta,
}
}
}
impl
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::associate_approval_rule_template_with_repository::AssociateApprovalRuleTemplateWithRepositoryError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::associate_approval_rule_template_with_repository::AssociateApprovalRuleTemplateWithRepositoryError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::associate_approval_rule_template_with_repository::AssociateApprovalRuleTemplateWithRepositoryError) -> Self {
match err {
crate::operation::associate_approval_rule_template_with_repository::AssociateApprovalRuleTemplateWithRepositoryError::ApprovalRuleTemplateDoesNotExistException(inner) => Error::ApprovalRuleTemplateDoesNotExistException(inner),
crate::operation::associate_approval_rule_template_with_repository::AssociateApprovalRuleTemplateWithRepositoryError::ApprovalRuleTemplateNameRequiredException(inner) => Error::ApprovalRuleTemplateNameRequiredException(inner),
crate::operation::associate_approval_rule_template_with_repository::AssociateApprovalRuleTemplateWithRepositoryError::EncryptionIntegrityChecksFailedException(inner) => Error::EncryptionIntegrityChecksFailedException(inner),
crate::operation::associate_approval_rule_template_with_repository::AssociateApprovalRuleTemplateWithRepositoryError::EncryptionKeyAccessDeniedException(inner) => Error::EncryptionKeyAccessDeniedException(inner),
crate::operation::associate_approval_rule_template_with_repository::AssociateApprovalRuleTemplateWithRepositoryError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::associate_approval_rule_template_with_repository::AssociateApprovalRuleTemplateWithRepositoryError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::associate_approval_rule_template_with_repository::AssociateApprovalRuleTemplateWithRepositoryError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::associate_approval_rule_template_with_repository::AssociateApprovalRuleTemplateWithRepositoryError::InvalidApprovalRuleTemplateNameException(inner) => Error::InvalidApprovalRuleTemplateNameException(inner),
crate::operation::associate_approval_rule_template_with_repository::AssociateApprovalRuleTemplateWithRepositoryError::InvalidRepositoryNameException(inner) => Error::InvalidRepositoryNameException(inner),
crate::operation::associate_approval_rule_template_with_repository::AssociateApprovalRuleTemplateWithRepositoryError::MaximumRuleTemplatesAssociatedWithRepositoryException(inner) => Error::MaximumRuleTemplatesAssociatedWithRepositoryException(inner),
crate::operation::associate_approval_rule_template_with_repository::AssociateApprovalRuleTemplateWithRepositoryError::RepositoryDoesNotExistException(inner) => Error::RepositoryDoesNotExistException(inner),
crate::operation::associate_approval_rule_template_with_repository::AssociateApprovalRuleTemplateWithRepositoryError::RepositoryNameRequiredException(inner) => Error::RepositoryNameRequiredException(inner),
crate::operation::associate_approval_rule_template_with_repository::AssociateApprovalRuleTemplateWithRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::batch_associate_approval_rule_template_with_repositories::BatchAssociateApprovalRuleTemplateWithRepositoriesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::batch_associate_approval_rule_template_with_repositories::BatchAssociateApprovalRuleTemplateWithRepositoriesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From
for Error
{
fn from(
err: crate::operation::batch_associate_approval_rule_template_with_repositories::BatchAssociateApprovalRuleTemplateWithRepositoriesError,
) -> Self {
match err {
crate::operation::batch_associate_approval_rule_template_with_repositories::BatchAssociateApprovalRuleTemplateWithRepositoriesError::ApprovalRuleTemplateDoesNotExistException(inner) => Error::ApprovalRuleTemplateDoesNotExistException(inner),
crate::operation::batch_associate_approval_rule_template_with_repositories::BatchAssociateApprovalRuleTemplateWithRepositoriesError::ApprovalRuleTemplateNameRequiredException(inner) => Error::ApprovalRuleTemplateNameRequiredException(inner),
crate::operation::batch_associate_approval_rule_template_with_repositories::BatchAssociateApprovalRuleTemplateWithRepositoriesError::EncryptionIntegrityChecksFailedException(inner) => Error::EncryptionIntegrityChecksFailedException(inner),
crate::operation::batch_associate_approval_rule_template_with_repositories::BatchAssociateApprovalRuleTemplateWithRepositoriesError::EncryptionKeyAccessDeniedException(inner) => Error::EncryptionKeyAccessDeniedException(inner),
crate::operation::batch_associate_approval_rule_template_with_repositories::BatchAssociateApprovalRuleTemplateWithRepositoriesError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::batch_associate_approval_rule_template_with_repositories::BatchAssociateApprovalRuleTemplateWithRepositoriesError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::batch_associate_approval_rule_template_with_repositories::BatchAssociateApprovalRuleTemplateWithRepositoriesError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::batch_associate_approval_rule_template_with_repositories::BatchAssociateApprovalRuleTemplateWithRepositoriesError::InvalidApprovalRuleTemplateNameException(inner) => Error::InvalidApprovalRuleTemplateNameException(inner),
crate::operation::batch_associate_approval_rule_template_with_repositories::BatchAssociateApprovalRuleTemplateWithRepositoriesError::MaximumRepositoryNamesExceededException(inner) => Error::MaximumRepositoryNamesExceededException(inner),
crate::operation::batch_associate_approval_rule_template_with_repositories::BatchAssociateApprovalRuleTemplateWithRepositoriesError::RepositoryNamesRequiredException(inner) => Error::RepositoryNamesRequiredException(inner),
crate::operation::batch_associate_approval_rule_template_with_repositories::BatchAssociateApprovalRuleTemplateWithRepositoriesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<::aws_smithy_runtime_api::client::result::SdkError>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError) -> Self {
match err {
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::CommitDoesNotExistException(inner) => {
Error::CommitDoesNotExistException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::CommitRequiredException(inner) => {
Error::CommitRequiredException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::InvalidCommitException(inner) => {
Error::InvalidCommitException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::InvalidConflictDetailLevelException(inner) => {
Error::InvalidConflictDetailLevelException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::InvalidConflictResolutionStrategyException(inner) => {
Error::InvalidConflictResolutionStrategyException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::InvalidContinuationTokenException(inner) => {
Error::InvalidContinuationTokenException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::InvalidMaxConflictFilesException(inner) => {
Error::InvalidMaxConflictFilesException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::InvalidMaxMergeHunksException(inner) => {
Error::InvalidMaxMergeHunksException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::InvalidMergeOptionException(inner) => {
Error::InvalidMergeOptionException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::MaximumFileContentToLoadExceededException(inner) => {
Error::MaximumFileContentToLoadExceededException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::MaximumItemsToCompareExceededException(inner) => {
Error::MaximumItemsToCompareExceededException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::MergeOptionRequiredException(inner) => {
Error::MergeOptionRequiredException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::TipsDivergenceExceededException(inner) => {
Error::TipsDivergenceExceededException(inner)
}
crate::operation::batch_describe_merge_conflicts::BatchDescribeMergeConflictsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::batch_disassociate_approval_rule_template_from_repositories::BatchDisassociateApprovalRuleTemplateFromRepositoriesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::batch_disassociate_approval_rule_template_from_repositories::BatchDisassociateApprovalRuleTemplateFromRepositoriesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From
for Error
{
fn from(
err: crate::operation::batch_disassociate_approval_rule_template_from_repositories::BatchDisassociateApprovalRuleTemplateFromRepositoriesError,
) -> Self {
match err {
crate::operation::batch_disassociate_approval_rule_template_from_repositories::BatchDisassociateApprovalRuleTemplateFromRepositoriesError::ApprovalRuleTemplateDoesNotExistException(inner) => Error::ApprovalRuleTemplateDoesNotExistException(inner),
crate::operation::batch_disassociate_approval_rule_template_from_repositories::BatchDisassociateApprovalRuleTemplateFromRepositoriesError::ApprovalRuleTemplateNameRequiredException(inner) => Error::ApprovalRuleTemplateNameRequiredException(inner),
crate::operation::batch_disassociate_approval_rule_template_from_repositories::BatchDisassociateApprovalRuleTemplateFromRepositoriesError::EncryptionIntegrityChecksFailedException(inner) => Error::EncryptionIntegrityChecksFailedException(inner),
crate::operation::batch_disassociate_approval_rule_template_from_repositories::BatchDisassociateApprovalRuleTemplateFromRepositoriesError::EncryptionKeyAccessDeniedException(inner) => Error::EncryptionKeyAccessDeniedException(inner),
crate::operation::batch_disassociate_approval_rule_template_from_repositories::BatchDisassociateApprovalRuleTemplateFromRepositoriesError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::batch_disassociate_approval_rule_template_from_repositories::BatchDisassociateApprovalRuleTemplateFromRepositoriesError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::batch_disassociate_approval_rule_template_from_repositories::BatchDisassociateApprovalRuleTemplateFromRepositoriesError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::batch_disassociate_approval_rule_template_from_repositories::BatchDisassociateApprovalRuleTemplateFromRepositoriesError::InvalidApprovalRuleTemplateNameException(inner) => Error::InvalidApprovalRuleTemplateNameException(inner),
crate::operation::batch_disassociate_approval_rule_template_from_repositories::BatchDisassociateApprovalRuleTemplateFromRepositoriesError::MaximumRepositoryNamesExceededException(inner) => Error::MaximumRepositoryNamesExceededException(inner),
crate::operation::batch_disassociate_approval_rule_template_from_repositories::BatchDisassociateApprovalRuleTemplateFromRepositoriesError::RepositoryNamesRequiredException(inner) => Error::RepositoryNamesRequiredException(inner),
crate::operation::batch_disassociate_approval_rule_template_from_repositories::BatchDisassociateApprovalRuleTemplateFromRepositoriesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::batch_get_commits::BatchGetCommitsError) -> Self {
match err {
crate::operation::batch_get_commits::BatchGetCommitsError::CommitIdsLimitExceededException(inner) => {
Error::CommitIdsLimitExceededException(inner)
}
crate::operation::batch_get_commits::BatchGetCommitsError::CommitIdsListRequiredException(inner) => {
Error::CommitIdsListRequiredException(inner)
}
crate::operation::batch_get_commits::BatchGetCommitsError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::batch_get_commits::BatchGetCommitsError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::batch_get_commits::BatchGetCommitsError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::batch_get_commits::BatchGetCommitsError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::batch_get_commits::BatchGetCommitsError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::batch_get_commits::BatchGetCommitsError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::batch_get_commits::BatchGetCommitsError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::batch_get_commits::BatchGetCommitsError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::batch_get_commits::BatchGetCommitsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::batch_get_repositories::BatchGetRepositoriesError) -> Self {
match err {
crate::operation::batch_get_repositories::BatchGetRepositoriesError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::batch_get_repositories::BatchGetRepositoriesError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::batch_get_repositories::BatchGetRepositoriesError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::batch_get_repositories::BatchGetRepositoriesError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::batch_get_repositories::BatchGetRepositoriesError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::batch_get_repositories::BatchGetRepositoriesError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::batch_get_repositories::BatchGetRepositoriesError::MaximumRepositoryNamesExceededException(inner) => {
Error::MaximumRepositoryNamesExceededException(inner)
}
crate::operation::batch_get_repositories::BatchGetRepositoriesError::RepositoryNamesRequiredException(inner) => {
Error::RepositoryNamesRequiredException(inner)
}
crate::operation::batch_get_repositories::BatchGetRepositoriesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::create_approval_rule_template::CreateApprovalRuleTemplateError) -> Self {
match err {
crate::operation::create_approval_rule_template::CreateApprovalRuleTemplateError::ApprovalRuleTemplateContentRequiredException(inner) => {
Error::ApprovalRuleTemplateContentRequiredException(inner)
}
crate::operation::create_approval_rule_template::CreateApprovalRuleTemplateError::ApprovalRuleTemplateNameAlreadyExistsException(
inner,
) => Error::ApprovalRuleTemplateNameAlreadyExistsException(inner),
crate::operation::create_approval_rule_template::CreateApprovalRuleTemplateError::ApprovalRuleTemplateNameRequiredException(inner) => {
Error::ApprovalRuleTemplateNameRequiredException(inner)
}
crate::operation::create_approval_rule_template::CreateApprovalRuleTemplateError::InvalidApprovalRuleTemplateContentException(inner) => {
Error::InvalidApprovalRuleTemplateContentException(inner)
}
crate::operation::create_approval_rule_template::CreateApprovalRuleTemplateError::InvalidApprovalRuleTemplateDescriptionException(
inner,
) => Error::InvalidApprovalRuleTemplateDescriptionException(inner),
crate::operation::create_approval_rule_template::CreateApprovalRuleTemplateError::InvalidApprovalRuleTemplateNameException(inner) => {
Error::InvalidApprovalRuleTemplateNameException(inner)
}
crate::operation::create_approval_rule_template::CreateApprovalRuleTemplateError::NumberOfRuleTemplatesExceededException(inner) => {
Error::NumberOfRuleTemplatesExceededException(inner)
}
crate::operation::create_approval_rule_template::CreateApprovalRuleTemplateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::create_branch::CreateBranchError) -> Self {
match err {
crate::operation::create_branch::CreateBranchError::BranchNameExistsException(inner) => Error::BranchNameExistsException(inner),
crate::operation::create_branch::CreateBranchError::BranchNameRequiredException(inner) => Error::BranchNameRequiredException(inner),
crate::operation::create_branch::CreateBranchError::CommitDoesNotExistException(inner) => Error::CommitDoesNotExistException(inner),
crate::operation::create_branch::CreateBranchError::CommitIdRequiredException(inner) => Error::CommitIdRequiredException(inner),
crate::operation::create_branch::CreateBranchError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::create_branch::CreateBranchError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::create_branch::CreateBranchError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::create_branch::CreateBranchError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::create_branch::CreateBranchError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::create_branch::CreateBranchError::InvalidBranchNameException(inner) => Error::InvalidBranchNameException(inner),
crate::operation::create_branch::CreateBranchError::InvalidCommitIdException(inner) => Error::InvalidCommitIdException(inner),
crate::operation::create_branch::CreateBranchError::InvalidRepositoryNameException(inner) => Error::InvalidRepositoryNameException(inner),
crate::operation::create_branch::CreateBranchError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::create_branch::CreateBranchError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::create_branch::CreateBranchError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::create_commit::CreateCommitError) -> Self {
match err {
crate::operation::create_commit::CreateCommitError::BranchDoesNotExistException(inner) => Error::BranchDoesNotExistException(inner),
crate::operation::create_commit::CreateCommitError::BranchNameIsTagNameException(inner) => Error::BranchNameIsTagNameException(inner),
crate::operation::create_commit::CreateCommitError::BranchNameRequiredException(inner) => Error::BranchNameRequiredException(inner),
crate::operation::create_commit::CreateCommitError::CommitMessageLengthExceededException(inner) => {
Error::CommitMessageLengthExceededException(inner)
}
crate::operation::create_commit::CreateCommitError::DirectoryNameConflictsWithFileNameException(inner) => {
Error::DirectoryNameConflictsWithFileNameException(inner)
}
crate::operation::create_commit::CreateCommitError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::create_commit::CreateCommitError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::create_commit::CreateCommitError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::create_commit::CreateCommitError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::create_commit::CreateCommitError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::create_commit::CreateCommitError::FileContentAndSourceFileSpecifiedException(inner) => {
Error::FileContentAndSourceFileSpecifiedException(inner)
}
crate::operation::create_commit::CreateCommitError::FileContentSizeLimitExceededException(inner) => {
Error::FileContentSizeLimitExceededException(inner)
}
crate::operation::create_commit::CreateCommitError::FileDoesNotExistException(inner) => Error::FileDoesNotExistException(inner),
crate::operation::create_commit::CreateCommitError::FileEntryRequiredException(inner) => Error::FileEntryRequiredException(inner),
crate::operation::create_commit::CreateCommitError::FileModeRequiredException(inner) => Error::FileModeRequiredException(inner),
crate::operation::create_commit::CreateCommitError::FileNameConflictsWithDirectoryNameException(inner) => {
Error::FileNameConflictsWithDirectoryNameException(inner)
}
crate::operation::create_commit::CreateCommitError::FilePathConflictsWithSubmodulePathException(inner) => {
Error::FilePathConflictsWithSubmodulePathException(inner)
}
crate::operation::create_commit::CreateCommitError::FolderContentSizeLimitExceededException(inner) => {
Error::FolderContentSizeLimitExceededException(inner)
}
crate::operation::create_commit::CreateCommitError::InvalidBranchNameException(inner) => Error::InvalidBranchNameException(inner),
crate::operation::create_commit::CreateCommitError::InvalidDeletionParameterException(inner) => {
Error::InvalidDeletionParameterException(inner)
}
crate::operation::create_commit::CreateCommitError::InvalidEmailException(inner) => Error::InvalidEmailException(inner),
crate::operation::create_commit::CreateCommitError::InvalidFileModeException(inner) => Error::InvalidFileModeException(inner),
crate::operation::create_commit::CreateCommitError::InvalidParentCommitIdException(inner) => Error::InvalidParentCommitIdException(inner),
crate::operation::create_commit::CreateCommitError::InvalidPathException(inner) => Error::InvalidPathException(inner),
crate::operation::create_commit::CreateCommitError::InvalidRepositoryNameException(inner) => Error::InvalidRepositoryNameException(inner),
crate::operation::create_commit::CreateCommitError::MaximumFileEntriesExceededException(inner) => {
Error::MaximumFileEntriesExceededException(inner)
}
crate::operation::create_commit::CreateCommitError::NameLengthExceededException(inner) => Error::NameLengthExceededException(inner),
crate::operation::create_commit::CreateCommitError::NoChangeException(inner) => Error::NoChangeException(inner),
crate::operation::create_commit::CreateCommitError::ParentCommitDoesNotExistException(inner) => {
Error::ParentCommitDoesNotExistException(inner)
}
crate::operation::create_commit::CreateCommitError::ParentCommitIdOutdatedException(inner) => {
Error::ParentCommitIdOutdatedException(inner)
}
crate::operation::create_commit::CreateCommitError::ParentCommitIdRequiredException(inner) => {
Error::ParentCommitIdRequiredException(inner)
}
crate::operation::create_commit::CreateCommitError::PathRequiredException(inner) => Error::PathRequiredException(inner),
crate::operation::create_commit::CreateCommitError::PutFileEntryConflictException(inner) => Error::PutFileEntryConflictException(inner),
crate::operation::create_commit::CreateCommitError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::create_commit::CreateCommitError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::create_commit::CreateCommitError::RestrictedSourceFileException(inner) => Error::RestrictedSourceFileException(inner),
crate::operation::create_commit::CreateCommitError::SamePathRequestException(inner) => Error::SamePathRequestException(inner),
crate::operation::create_commit::CreateCommitError::SourceFileOrContentRequiredException(inner) => {
Error::SourceFileOrContentRequiredException(inner)
}
crate::operation::create_commit::CreateCommitError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::create_pull_request::CreatePullRequestError) -> Self {
match err {
crate::operation::create_pull_request::CreatePullRequestError::ClientRequestTokenRequiredException(inner) => {
Error::ClientRequestTokenRequiredException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::IdempotencyParameterMismatchException(inner) => {
Error::IdempotencyParameterMismatchException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::InvalidClientRequestTokenException(inner) => {
Error::InvalidClientRequestTokenException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::InvalidDescriptionException(inner) => {
Error::InvalidDescriptionException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::InvalidReferenceNameException(inner) => {
Error::InvalidReferenceNameException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::InvalidTargetException(inner) => Error::InvalidTargetException(inner),
crate::operation::create_pull_request::CreatePullRequestError::InvalidTargetsException(inner) => Error::InvalidTargetsException(inner),
crate::operation::create_pull_request::CreatePullRequestError::InvalidTitleException(inner) => Error::InvalidTitleException(inner),
crate::operation::create_pull_request::CreatePullRequestError::MaximumOpenPullRequestsExceededException(inner) => {
Error::MaximumOpenPullRequestsExceededException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::MultipleRepositoriesInPullRequestException(inner) => {
Error::MultipleRepositoriesInPullRequestException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::ReferenceDoesNotExistException(inner) => {
Error::ReferenceDoesNotExistException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::ReferenceNameRequiredException(inner) => {
Error::ReferenceNameRequiredException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::ReferenceTypeNotSupportedException(inner) => {
Error::ReferenceTypeNotSupportedException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::SourceAndDestinationAreSameException(inner) => {
Error::SourceAndDestinationAreSameException(inner)
}
crate::operation::create_pull_request::CreatePullRequestError::TargetRequiredException(inner) => Error::TargetRequiredException(inner),
crate::operation::create_pull_request::CreatePullRequestError::TargetsRequiredException(inner) => Error::TargetsRequiredException(inner),
crate::operation::create_pull_request::CreatePullRequestError::TitleRequiredException(inner) => Error::TitleRequiredException(inner),
crate::operation::create_pull_request::CreatePullRequestError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError) -> Self {
match err {
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError::ApprovalRuleContentRequiredException(inner) => {
Error::ApprovalRuleContentRequiredException(inner)
}
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError::ApprovalRuleNameAlreadyExistsException(
inner,
) => Error::ApprovalRuleNameAlreadyExistsException(inner),
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError::ApprovalRuleNameRequiredException(inner) => {
Error::ApprovalRuleNameRequiredException(inner)
}
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError::EncryptionIntegrityChecksFailedException(
inner,
) => Error::EncryptionIntegrityChecksFailedException(inner),
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError::InvalidApprovalRuleContentException(inner) => {
Error::InvalidApprovalRuleContentException(inner)
}
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError::InvalidApprovalRuleNameException(inner) => {
Error::InvalidApprovalRuleNameException(inner)
}
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError::InvalidPullRequestIdException(inner) => {
Error::InvalidPullRequestIdException(inner)
}
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError::NumberOfRulesExceededException(inner) => {
Error::NumberOfRulesExceededException(inner)
}
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError::PullRequestAlreadyClosedException(inner) => {
Error::PullRequestAlreadyClosedException(inner)
}
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError::PullRequestDoesNotExistException(inner) => {
Error::PullRequestDoesNotExistException(inner)
}
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError::PullRequestIdRequiredException(inner) => {
Error::PullRequestIdRequiredException(inner)
}
crate::operation::create_pull_request_approval_rule::CreatePullRequestApprovalRuleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::create_repository::CreateRepositoryError) -> Self {
match err {
crate::operation::create_repository::CreateRepositoryError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::create_repository::CreateRepositoryError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::create_repository::CreateRepositoryError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::create_repository::CreateRepositoryError::EncryptionKeyInvalidIdException(inner) => {
Error::EncryptionKeyInvalidIdException(inner)
}
crate::operation::create_repository::CreateRepositoryError::EncryptionKeyInvalidUsageException(inner) => {
Error::EncryptionKeyInvalidUsageException(inner)
}
crate::operation::create_repository::CreateRepositoryError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::create_repository::CreateRepositoryError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::create_repository::CreateRepositoryError::InvalidRepositoryDescriptionException(inner) => {
Error::InvalidRepositoryDescriptionException(inner)
}
crate::operation::create_repository::CreateRepositoryError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::create_repository::CreateRepositoryError::InvalidSystemTagUsageException(inner) => {
Error::InvalidSystemTagUsageException(inner)
}
crate::operation::create_repository::CreateRepositoryError::InvalidTagsMapException(inner) => Error::InvalidTagsMapException(inner),
crate::operation::create_repository::CreateRepositoryError::OperationNotAllowedException(inner) => {
Error::OperationNotAllowedException(inner)
}
crate::operation::create_repository::CreateRepositoryError::RepositoryLimitExceededException(inner) => {
Error::RepositoryLimitExceededException(inner)
}
crate::operation::create_repository::CreateRepositoryError::RepositoryNameExistsException(inner) => {
Error::RepositoryNameExistsException(inner)
}
crate::operation::create_repository::CreateRepositoryError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::create_repository::CreateRepositoryError::TagPolicyException(inner) => Error::TagPolicyException(inner),
crate::operation::create_repository::CreateRepositoryError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
crate::operation::create_repository::CreateRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<
::aws_smithy_runtime_api::client::result::SdkError,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError) -> Self {
match err {
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::CommitDoesNotExistException(inner) => Error::CommitDoesNotExistException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::CommitMessageLengthExceededException(inner) => Error::CommitMessageLengthExceededException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::CommitRequiredException(inner) => Error::CommitRequiredException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::ConcurrentReferenceUpdateException(inner) => Error::ConcurrentReferenceUpdateException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::EncryptionIntegrityChecksFailedException(inner) => Error::EncryptionIntegrityChecksFailedException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::EncryptionKeyAccessDeniedException(inner) => Error::EncryptionKeyAccessDeniedException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::FileContentSizeLimitExceededException(inner) => Error::FileContentSizeLimitExceededException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::FileModeRequiredException(inner) => Error::FileModeRequiredException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::FolderContentSizeLimitExceededException(inner) => Error::FolderContentSizeLimitExceededException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::InvalidCommitException(inner) => Error::InvalidCommitException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::InvalidConflictDetailLevelException(inner) => Error::InvalidConflictDetailLevelException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::InvalidConflictResolutionException(inner) => Error::InvalidConflictResolutionException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::InvalidConflictResolutionStrategyException(inner) => Error::InvalidConflictResolutionStrategyException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::InvalidEmailException(inner) => Error::InvalidEmailException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::InvalidFileModeException(inner) => Error::InvalidFileModeException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::InvalidMergeOptionException(inner) => Error::InvalidMergeOptionException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::InvalidPathException(inner) => Error::InvalidPathException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::InvalidReplacementContentException(inner) => Error::InvalidReplacementContentException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::InvalidReplacementTypeException(inner) => Error::InvalidReplacementTypeException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::InvalidRepositoryNameException(inner) => Error::InvalidRepositoryNameException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::ManualMergeRequiredException(inner) => Error::ManualMergeRequiredException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::MaximumConflictResolutionEntriesExceededException(inner) => Error::MaximumConflictResolutionEntriesExceededException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::MaximumFileContentToLoadExceededException(inner) => Error::MaximumFileContentToLoadExceededException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::MaximumItemsToCompareExceededException(inner) => Error::MaximumItemsToCompareExceededException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::MergeOptionRequiredException(inner) => Error::MergeOptionRequiredException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::MultipleConflictResolutionEntriesException(inner) => Error::MultipleConflictResolutionEntriesException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::NameLengthExceededException(inner) => Error::NameLengthExceededException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::PathRequiredException(inner) => Error::PathRequiredException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::ReplacementContentRequiredException(inner) => Error::ReplacementContentRequiredException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::ReplacementTypeRequiredException(inner) => Error::ReplacementTypeRequiredException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::RepositoryDoesNotExistException(inner) => Error::RepositoryDoesNotExistException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::RepositoryNameRequiredException(inner) => Error::RepositoryNameRequiredException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::TipsDivergenceExceededException(inner) => Error::TipsDivergenceExceededException(inner),
crate::operation::create_unreferenced_merge_commit::CreateUnreferencedMergeCommitError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::delete_approval_rule_template::DeleteApprovalRuleTemplateError) -> Self {
match err {
crate::operation::delete_approval_rule_template::DeleteApprovalRuleTemplateError::ApprovalRuleTemplateInUseException(inner) => {
Error::ApprovalRuleTemplateInUseException(inner)
}
crate::operation::delete_approval_rule_template::DeleteApprovalRuleTemplateError::ApprovalRuleTemplateNameRequiredException(inner) => {
Error::ApprovalRuleTemplateNameRequiredException(inner)
}
crate::operation::delete_approval_rule_template::DeleteApprovalRuleTemplateError::InvalidApprovalRuleTemplateNameException(inner) => {
Error::InvalidApprovalRuleTemplateNameException(inner)
}
crate::operation::delete_approval_rule_template::DeleteApprovalRuleTemplateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::delete_branch::DeleteBranchError) -> Self {
match err {
crate::operation::delete_branch::DeleteBranchError::BranchNameRequiredException(inner) => Error::BranchNameRequiredException(inner),
crate::operation::delete_branch::DeleteBranchError::DefaultBranchCannotBeDeletedException(inner) => {
Error::DefaultBranchCannotBeDeletedException(inner)
}
crate::operation::delete_branch::DeleteBranchError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::delete_branch::DeleteBranchError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::delete_branch::DeleteBranchError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::delete_branch::DeleteBranchError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::delete_branch::DeleteBranchError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::delete_branch::DeleteBranchError::InvalidBranchNameException(inner) => Error::InvalidBranchNameException(inner),
crate::operation::delete_branch::DeleteBranchError::InvalidRepositoryNameException(inner) => Error::InvalidRepositoryNameException(inner),
crate::operation::delete_branch::DeleteBranchError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::delete_branch::DeleteBranchError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::delete_branch::DeleteBranchError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::delete_comment_content::DeleteCommentContentError) -> Self {
match err {
crate::operation::delete_comment_content::DeleteCommentContentError::CommentDeletedException(inner) => {
Error::CommentDeletedException(inner)
}
crate::operation::delete_comment_content::DeleteCommentContentError::CommentDoesNotExistException(inner) => {
Error::CommentDoesNotExistException(inner)
}
crate::operation::delete_comment_content::DeleteCommentContentError::CommentIdRequiredException(inner) => {
Error::CommentIdRequiredException(inner)
}
crate::operation::delete_comment_content::DeleteCommentContentError::InvalidCommentIdException(inner) => {
Error::InvalidCommentIdException(inner)
}
crate::operation::delete_comment_content::DeleteCommentContentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::delete_file::DeleteFileError) -> Self {
match err {
crate::operation::delete_file::DeleteFileError::BranchDoesNotExistException(inner) => Error::BranchDoesNotExistException(inner),
crate::operation::delete_file::DeleteFileError::BranchNameIsTagNameException(inner) => Error::BranchNameIsTagNameException(inner),
crate::operation::delete_file::DeleteFileError::BranchNameRequiredException(inner) => Error::BranchNameRequiredException(inner),
crate::operation::delete_file::DeleteFileError::CommitMessageLengthExceededException(inner) => {
Error::CommitMessageLengthExceededException(inner)
}
crate::operation::delete_file::DeleteFileError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::delete_file::DeleteFileError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::delete_file::DeleteFileError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::delete_file::DeleteFileError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::delete_file::DeleteFileError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::delete_file::DeleteFileError::FileDoesNotExistException(inner) => Error::FileDoesNotExistException(inner),
crate::operation::delete_file::DeleteFileError::InvalidBranchNameException(inner) => Error::InvalidBranchNameException(inner),
crate::operation::delete_file::DeleteFileError::InvalidEmailException(inner) => Error::InvalidEmailException(inner),
crate::operation::delete_file::DeleteFileError::InvalidParentCommitIdException(inner) => Error::InvalidParentCommitIdException(inner),
crate::operation::delete_file::DeleteFileError::InvalidPathException(inner) => Error::InvalidPathException(inner),
crate::operation::delete_file::DeleteFileError::InvalidRepositoryNameException(inner) => Error::InvalidRepositoryNameException(inner),
crate::operation::delete_file::DeleteFileError::NameLengthExceededException(inner) => Error::NameLengthExceededException(inner),
crate::operation::delete_file::DeleteFileError::ParentCommitDoesNotExistException(inner) => {
Error::ParentCommitDoesNotExistException(inner)
}
crate::operation::delete_file::DeleteFileError::ParentCommitIdOutdatedException(inner) => Error::ParentCommitIdOutdatedException(inner),
crate::operation::delete_file::DeleteFileError::ParentCommitIdRequiredException(inner) => Error::ParentCommitIdRequiredException(inner),
crate::operation::delete_file::DeleteFileError::PathRequiredException(inner) => Error::PathRequiredException(inner),
crate::operation::delete_file::DeleteFileError::RepositoryDoesNotExistException(inner) => Error::RepositoryDoesNotExistException(inner),
crate::operation::delete_file::DeleteFileError::RepositoryNameRequiredException(inner) => Error::RepositoryNameRequiredException(inner),
crate::operation::delete_file::DeleteFileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleError) -> Self {
match err {
crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleError::ApprovalRuleNameRequiredException(inner) => Error::ApprovalRuleNameRequiredException(inner),
crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleError::CannotDeleteApprovalRuleFromTemplateException(inner) => Error::CannotDeleteApprovalRuleFromTemplateException(inner),
crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleError::EncryptionIntegrityChecksFailedException(inner) => Error::EncryptionIntegrityChecksFailedException(inner),
crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleError::EncryptionKeyAccessDeniedException(inner) => Error::EncryptionKeyAccessDeniedException(inner),
crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleError::InvalidApprovalRuleNameException(inner) => Error::InvalidApprovalRuleNameException(inner),
crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleError::InvalidPullRequestIdException(inner) => Error::InvalidPullRequestIdException(inner),
crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleError::PullRequestAlreadyClosedException(inner) => Error::PullRequestAlreadyClosedException(inner),
crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleError::PullRequestDoesNotExistException(inner) => Error::PullRequestDoesNotExistException(inner),
crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleError::PullRequestIdRequiredException(inner) => Error::PullRequestIdRequiredException(inner),
crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::delete_repository::DeleteRepositoryError) -> Self {
match err {
crate::operation::delete_repository::DeleteRepositoryError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::delete_repository::DeleteRepositoryError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::delete_repository::DeleteRepositoryError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::delete_repository::DeleteRepositoryError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::delete_repository::DeleteRepositoryError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::delete_repository::DeleteRepositoryError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::delete_repository::DeleteRepositoryError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::delete_repository::DeleteRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::describe_merge_conflicts::DescribeMergeConflictsError) -> Self {
match err {
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::CommitDoesNotExistException(inner) => {
Error::CommitDoesNotExistException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::CommitRequiredException(inner) => {
Error::CommitRequiredException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::FileDoesNotExistException(inner) => {
Error::FileDoesNotExistException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::InvalidCommitException(inner) => {
Error::InvalidCommitException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::InvalidConflictDetailLevelException(inner) => {
Error::InvalidConflictDetailLevelException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::InvalidConflictResolutionStrategyException(inner) => {
Error::InvalidConflictResolutionStrategyException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::InvalidContinuationTokenException(inner) => {
Error::InvalidContinuationTokenException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::InvalidMaxMergeHunksException(inner) => {
Error::InvalidMaxMergeHunksException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::InvalidMergeOptionException(inner) => {
Error::InvalidMergeOptionException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::InvalidPathException(inner) => {
Error::InvalidPathException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::MaximumFileContentToLoadExceededException(inner) => {
Error::MaximumFileContentToLoadExceededException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::MaximumItemsToCompareExceededException(inner) => {
Error::MaximumItemsToCompareExceededException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::MergeOptionRequiredException(inner) => {
Error::MergeOptionRequiredException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::PathRequiredException(inner) => {
Error::PathRequiredException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::TipsDivergenceExceededException(inner) => {
Error::TipsDivergenceExceededException(inner)
}
crate::operation::describe_merge_conflicts::DescribeMergeConflictsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::describe_pull_request_events::DescribePullRequestEventsError) -> Self {
match err {
crate::operation::describe_pull_request_events::DescribePullRequestEventsError::ActorDoesNotExistException(inner) => {
Error::ActorDoesNotExistException(inner)
}
crate::operation::describe_pull_request_events::DescribePullRequestEventsError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::describe_pull_request_events::DescribePullRequestEventsError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::describe_pull_request_events::DescribePullRequestEventsError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::describe_pull_request_events::DescribePullRequestEventsError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::describe_pull_request_events::DescribePullRequestEventsError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::describe_pull_request_events::DescribePullRequestEventsError::InvalidActorArnException(inner) => {
Error::InvalidActorArnException(inner)
}
crate::operation::describe_pull_request_events::DescribePullRequestEventsError::InvalidContinuationTokenException(inner) => {
Error::InvalidContinuationTokenException(inner)
}
crate::operation::describe_pull_request_events::DescribePullRequestEventsError::InvalidMaxResultsException(inner) => {
Error::InvalidMaxResultsException(inner)
}
crate::operation::describe_pull_request_events::DescribePullRequestEventsError::InvalidPullRequestEventTypeException(inner) => {
Error::InvalidPullRequestEventTypeException(inner)
}
crate::operation::describe_pull_request_events::DescribePullRequestEventsError::InvalidPullRequestIdException(inner) => {
Error::InvalidPullRequestIdException(inner)
}
crate::operation::describe_pull_request_events::DescribePullRequestEventsError::PullRequestDoesNotExistException(inner) => {
Error::PullRequestDoesNotExistException(inner)
}
crate::operation::describe_pull_request_events::DescribePullRequestEventsError::PullRequestIdRequiredException(inner) => {
Error::PullRequestIdRequiredException(inner)
}
crate::operation::describe_pull_request_events::DescribePullRequestEventsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_approval_rule_template_from_repository::DisassociateApprovalRuleTemplateFromRepositoryError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_approval_rule_template_from_repository::DisassociateApprovalRuleTemplateFromRepositoryError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::disassociate_approval_rule_template_from_repository::DisassociateApprovalRuleTemplateFromRepositoryError) -> Self {
match err {
crate::operation::disassociate_approval_rule_template_from_repository::DisassociateApprovalRuleTemplateFromRepositoryError::ApprovalRuleTemplateDoesNotExistException(inner) => Error::ApprovalRuleTemplateDoesNotExistException(inner),
crate::operation::disassociate_approval_rule_template_from_repository::DisassociateApprovalRuleTemplateFromRepositoryError::ApprovalRuleTemplateNameRequiredException(inner) => Error::ApprovalRuleTemplateNameRequiredException(inner),
crate::operation::disassociate_approval_rule_template_from_repository::DisassociateApprovalRuleTemplateFromRepositoryError::EncryptionIntegrityChecksFailedException(inner) => Error::EncryptionIntegrityChecksFailedException(inner),
crate::operation::disassociate_approval_rule_template_from_repository::DisassociateApprovalRuleTemplateFromRepositoryError::EncryptionKeyAccessDeniedException(inner) => Error::EncryptionKeyAccessDeniedException(inner),
crate::operation::disassociate_approval_rule_template_from_repository::DisassociateApprovalRuleTemplateFromRepositoryError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::disassociate_approval_rule_template_from_repository::DisassociateApprovalRuleTemplateFromRepositoryError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::disassociate_approval_rule_template_from_repository::DisassociateApprovalRuleTemplateFromRepositoryError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::disassociate_approval_rule_template_from_repository::DisassociateApprovalRuleTemplateFromRepositoryError::InvalidApprovalRuleTemplateNameException(inner) => Error::InvalidApprovalRuleTemplateNameException(inner),
crate::operation::disassociate_approval_rule_template_from_repository::DisassociateApprovalRuleTemplateFromRepositoryError::InvalidRepositoryNameException(inner) => Error::InvalidRepositoryNameException(inner),
crate::operation::disassociate_approval_rule_template_from_repository::DisassociateApprovalRuleTemplateFromRepositoryError::RepositoryDoesNotExistException(inner) => Error::RepositoryDoesNotExistException(inner),
crate::operation::disassociate_approval_rule_template_from_repository::DisassociateApprovalRuleTemplateFromRepositoryError::RepositoryNameRequiredException(inner) => Error::RepositoryNameRequiredException(inner),
crate::operation::disassociate_approval_rule_template_from_repository::DisassociateApprovalRuleTemplateFromRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesError) -> Self {
match err {
crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesError::EncryptionIntegrityChecksFailedException(inner) => Error::EncryptionIntegrityChecksFailedException(inner),
crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesError::EncryptionKeyAccessDeniedException(inner) => Error::EncryptionKeyAccessDeniedException(inner),
crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesError::InvalidPullRequestIdException(inner) => Error::InvalidPullRequestIdException(inner),
crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesError::InvalidRevisionIdException(inner) => Error::InvalidRevisionIdException(inner),
crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesError::PullRequestDoesNotExistException(inner) => Error::PullRequestDoesNotExistException(inner),
crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesError::PullRequestIdRequiredException(inner) => Error::PullRequestIdRequiredException(inner),
crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesError::RevisionIdRequiredException(inner) => Error::RevisionIdRequiredException(inner),
crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesError::RevisionNotCurrentException(inner) => Error::RevisionNotCurrentException(inner),
crate::operation::evaluate_pull_request_approval_rules::EvaluatePullRequestApprovalRulesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_approval_rule_template::GetApprovalRuleTemplateError) -> Self {
match err {
crate::operation::get_approval_rule_template::GetApprovalRuleTemplateError::ApprovalRuleTemplateDoesNotExistException(inner) => {
Error::ApprovalRuleTemplateDoesNotExistException(inner)
}
crate::operation::get_approval_rule_template::GetApprovalRuleTemplateError::ApprovalRuleTemplateNameRequiredException(inner) => {
Error::ApprovalRuleTemplateNameRequiredException(inner)
}
crate::operation::get_approval_rule_template::GetApprovalRuleTemplateError::InvalidApprovalRuleTemplateNameException(inner) => {
Error::InvalidApprovalRuleTemplateNameException(inner)
}
crate::operation::get_approval_rule_template::GetApprovalRuleTemplateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_blob::GetBlobError) -> Self {
match err {
crate::operation::get_blob::GetBlobError::BlobIdDoesNotExistException(inner) => Error::BlobIdDoesNotExistException(inner),
crate::operation::get_blob::GetBlobError::BlobIdRequiredException(inner) => Error::BlobIdRequiredException(inner),
crate::operation::get_blob::GetBlobError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::get_blob::GetBlobError::EncryptionKeyAccessDeniedException(inner) => Error::EncryptionKeyAccessDeniedException(inner),
crate::operation::get_blob::GetBlobError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::get_blob::GetBlobError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::get_blob::GetBlobError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::get_blob::GetBlobError::FileTooLargeException(inner) => Error::FileTooLargeException(inner),
crate::operation::get_blob::GetBlobError::InvalidBlobIdException(inner) => Error::InvalidBlobIdException(inner),
crate::operation::get_blob::GetBlobError::InvalidRepositoryNameException(inner) => Error::InvalidRepositoryNameException(inner),
crate::operation::get_blob::GetBlobError::RepositoryDoesNotExistException(inner) => Error::RepositoryDoesNotExistException(inner),
crate::operation::get_blob::GetBlobError::RepositoryNameRequiredException(inner) => Error::RepositoryNameRequiredException(inner),
crate::operation::get_blob::GetBlobError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_branch::GetBranchError) -> Self {
match err {
crate::operation::get_branch::GetBranchError::BranchDoesNotExistException(inner) => Error::BranchDoesNotExistException(inner),
crate::operation::get_branch::GetBranchError::BranchNameRequiredException(inner) => Error::BranchNameRequiredException(inner),
crate::operation::get_branch::GetBranchError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::get_branch::GetBranchError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::get_branch::GetBranchError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::get_branch::GetBranchError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::get_branch::GetBranchError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::get_branch::GetBranchError::InvalidBranchNameException(inner) => Error::InvalidBranchNameException(inner),
crate::operation::get_branch::GetBranchError::InvalidRepositoryNameException(inner) => Error::InvalidRepositoryNameException(inner),
crate::operation::get_branch::GetBranchError::RepositoryDoesNotExistException(inner) => Error::RepositoryDoesNotExistException(inner),
crate::operation::get_branch::GetBranchError::RepositoryNameRequiredException(inner) => Error::RepositoryNameRequiredException(inner),
crate::operation::get_branch::GetBranchError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_comment::GetCommentError) -> Self {
match err {
crate::operation::get_comment::GetCommentError::CommentDeletedException(inner) => Error::CommentDeletedException(inner),
crate::operation::get_comment::GetCommentError::CommentDoesNotExistException(inner) => Error::CommentDoesNotExistException(inner),
crate::operation::get_comment::GetCommentError::CommentIdRequiredException(inner) => Error::CommentIdRequiredException(inner),
crate::operation::get_comment::GetCommentError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::get_comment::GetCommentError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::get_comment::GetCommentError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::get_comment::GetCommentError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::get_comment::GetCommentError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::get_comment::GetCommentError::InvalidCommentIdException(inner) => Error::InvalidCommentIdException(inner),
crate::operation::get_comment::GetCommentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_comment_reactions::GetCommentReactionsError) -> Self {
match err {
crate::operation::get_comment_reactions::GetCommentReactionsError::CommentDeletedException(inner) => {
Error::CommentDeletedException(inner)
}
crate::operation::get_comment_reactions::GetCommentReactionsError::CommentDoesNotExistException(inner) => {
Error::CommentDoesNotExistException(inner)
}
crate::operation::get_comment_reactions::GetCommentReactionsError::CommentIdRequiredException(inner) => {
Error::CommentIdRequiredException(inner)
}
crate::operation::get_comment_reactions::GetCommentReactionsError::InvalidCommentIdException(inner) => {
Error::InvalidCommentIdException(inner)
}
crate::operation::get_comment_reactions::GetCommentReactionsError::InvalidContinuationTokenException(inner) => {
Error::InvalidContinuationTokenException(inner)
}
crate::operation::get_comment_reactions::GetCommentReactionsError::InvalidMaxResultsException(inner) => {
Error::InvalidMaxResultsException(inner)
}
crate::operation::get_comment_reactions::GetCommentReactionsError::InvalidReactionUserArnException(inner) => {
Error::InvalidReactionUserArnException(inner)
}
crate::operation::get_comment_reactions::GetCommentReactionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<::aws_smithy_runtime_api::client::result::SdkError>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_comments_for_compared_commit::GetCommentsForComparedCommitError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_comments_for_compared_commit::GetCommentsForComparedCommitError) -> Self {
match err {
crate::operation::get_comments_for_compared_commit::GetCommentsForComparedCommitError::CommitDoesNotExistException(inner) => {
Error::CommitDoesNotExistException(inner)
}
crate::operation::get_comments_for_compared_commit::GetCommentsForComparedCommitError::CommitIdRequiredException(inner) => {
Error::CommitIdRequiredException(inner)
}
crate::operation::get_comments_for_compared_commit::GetCommentsForComparedCommitError::EncryptionIntegrityChecksFailedException(
inner,
) => Error::EncryptionIntegrityChecksFailedException(inner),
crate::operation::get_comments_for_compared_commit::GetCommentsForComparedCommitError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::get_comments_for_compared_commit::GetCommentsForComparedCommitError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::get_comments_for_compared_commit::GetCommentsForComparedCommitError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::get_comments_for_compared_commit::GetCommentsForComparedCommitError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::get_comments_for_compared_commit::GetCommentsForComparedCommitError::InvalidCommitIdException(inner) => {
Error::InvalidCommitIdException(inner)
}
crate::operation::get_comments_for_compared_commit::GetCommentsForComparedCommitError::InvalidContinuationTokenException(inner) => {
Error::InvalidContinuationTokenException(inner)
}
crate::operation::get_comments_for_compared_commit::GetCommentsForComparedCommitError::InvalidMaxResultsException(inner) => {
Error::InvalidMaxResultsException(inner)
}
crate::operation::get_comments_for_compared_commit::GetCommentsForComparedCommitError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::get_comments_for_compared_commit::GetCommentsForComparedCommitError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::get_comments_for_compared_commit::GetCommentsForComparedCommitError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::get_comments_for_compared_commit::GetCommentsForComparedCommitError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError) -> Self {
match err {
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::CommitDoesNotExistException(inner) => {
Error::CommitDoesNotExistException(inner)
}
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::CommitIdRequiredException(inner) => {
Error::CommitIdRequiredException(inner)
}
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::InvalidCommitIdException(inner) => {
Error::InvalidCommitIdException(inner)
}
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::InvalidContinuationTokenException(inner) => {
Error::InvalidContinuationTokenException(inner)
}
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::InvalidMaxResultsException(inner) => {
Error::InvalidMaxResultsException(inner)
}
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::InvalidPullRequestIdException(inner) => {
Error::InvalidPullRequestIdException(inner)
}
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::PullRequestDoesNotExistException(inner) => {
Error::PullRequestDoesNotExistException(inner)
}
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::PullRequestIdRequiredException(inner) => {
Error::PullRequestIdRequiredException(inner)
}
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::RepositoryNotAssociatedWithPullRequestException(
inner,
) => Error::RepositoryNotAssociatedWithPullRequestException(inner),
crate::operation::get_comments_for_pull_request::GetCommentsForPullRequestError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_commit::GetCommitError) -> Self {
match err {
crate::operation::get_commit::GetCommitError::CommitIdDoesNotExistException(inner) => Error::CommitIdDoesNotExistException(inner),
crate::operation::get_commit::GetCommitError::CommitIdRequiredException(inner) => Error::CommitIdRequiredException(inner),
crate::operation::get_commit::GetCommitError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::get_commit::GetCommitError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::get_commit::GetCommitError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::get_commit::GetCommitError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::get_commit::GetCommitError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::get_commit::GetCommitError::InvalidCommitIdException(inner) => Error::InvalidCommitIdException(inner),
crate::operation::get_commit::GetCommitError::InvalidRepositoryNameException(inner) => Error::InvalidRepositoryNameException(inner),
crate::operation::get_commit::GetCommitError::RepositoryDoesNotExistException(inner) => Error::RepositoryDoesNotExistException(inner),
crate::operation::get_commit::GetCommitError::RepositoryNameRequiredException(inner) => Error::RepositoryNameRequiredException(inner),
crate::operation::get_commit::GetCommitError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_differences::GetDifferencesError) -> Self {
match err {
crate::operation::get_differences::GetDifferencesError::CommitDoesNotExistException(inner) => Error::CommitDoesNotExistException(inner),
crate::operation::get_differences::GetDifferencesError::CommitRequiredException(inner) => Error::CommitRequiredException(inner),
crate::operation::get_differences::GetDifferencesError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::get_differences::GetDifferencesError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::get_differences::GetDifferencesError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::get_differences::GetDifferencesError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::get_differences::GetDifferencesError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::get_differences::GetDifferencesError::InvalidCommitException(inner) => Error::InvalidCommitException(inner),
crate::operation::get_differences::GetDifferencesError::InvalidCommitIdException(inner) => Error::InvalidCommitIdException(inner),
crate::operation::get_differences::GetDifferencesError::InvalidContinuationTokenException(inner) => {
Error::InvalidContinuationTokenException(inner)
}
crate::operation::get_differences::GetDifferencesError::InvalidMaxResultsException(inner) => Error::InvalidMaxResultsException(inner),
crate::operation::get_differences::GetDifferencesError::InvalidPathException(inner) => Error::InvalidPathException(inner),
crate::operation::get_differences::GetDifferencesError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::get_differences::GetDifferencesError::PathDoesNotExistException(inner) => Error::PathDoesNotExistException(inner),
crate::operation::get_differences::GetDifferencesError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::get_differences::GetDifferencesError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::get_differences::GetDifferencesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_file::GetFileError) -> Self {
match err {
crate::operation::get_file::GetFileError::CommitDoesNotExistException(inner) => Error::CommitDoesNotExistException(inner),
crate::operation::get_file::GetFileError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::get_file::GetFileError::EncryptionKeyAccessDeniedException(inner) => Error::EncryptionKeyAccessDeniedException(inner),
crate::operation::get_file::GetFileError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::get_file::GetFileError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::get_file::GetFileError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::get_file::GetFileError::FileDoesNotExistException(inner) => Error::FileDoesNotExistException(inner),
crate::operation::get_file::GetFileError::FileTooLargeException(inner) => Error::FileTooLargeException(inner),
crate::operation::get_file::GetFileError::InvalidCommitException(inner) => Error::InvalidCommitException(inner),
crate::operation::get_file::GetFileError::InvalidPathException(inner) => Error::InvalidPathException(inner),
crate::operation::get_file::GetFileError::InvalidRepositoryNameException(inner) => Error::InvalidRepositoryNameException(inner),
crate::operation::get_file::GetFileError::PathRequiredException(inner) => Error::PathRequiredException(inner),
crate::operation::get_file::GetFileError::RepositoryDoesNotExistException(inner) => Error::RepositoryDoesNotExistException(inner),
crate::operation::get_file::GetFileError::RepositoryNameRequiredException(inner) => Error::RepositoryNameRequiredException(inner),
crate::operation::get_file::GetFileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_folder::GetFolderError) -> Self {
match err {
crate::operation::get_folder::GetFolderError::CommitDoesNotExistException(inner) => Error::CommitDoesNotExistException(inner),
crate::operation::get_folder::GetFolderError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::get_folder::GetFolderError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::get_folder::GetFolderError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::get_folder::GetFolderError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::get_folder::GetFolderError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::get_folder::GetFolderError::FolderDoesNotExistException(inner) => Error::FolderDoesNotExistException(inner),
crate::operation::get_folder::GetFolderError::InvalidCommitException(inner) => Error::InvalidCommitException(inner),
crate::operation::get_folder::GetFolderError::InvalidPathException(inner) => Error::InvalidPathException(inner),
crate::operation::get_folder::GetFolderError::InvalidRepositoryNameException(inner) => Error::InvalidRepositoryNameException(inner),
crate::operation::get_folder::GetFolderError::PathRequiredException(inner) => Error::PathRequiredException(inner),
crate::operation::get_folder::GetFolderError::RepositoryDoesNotExistException(inner) => Error::RepositoryDoesNotExistException(inner),
crate::operation::get_folder::GetFolderError::RepositoryNameRequiredException(inner) => Error::RepositoryNameRequiredException(inner),
crate::operation::get_folder::GetFolderError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_merge_commit::GetMergeCommitError) -> Self {
match err {
crate::operation::get_merge_commit::GetMergeCommitError::CommitDoesNotExistException(inner) => Error::CommitDoesNotExistException(inner),
crate::operation::get_merge_commit::GetMergeCommitError::CommitRequiredException(inner) => Error::CommitRequiredException(inner),
crate::operation::get_merge_commit::GetMergeCommitError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::get_merge_commit::GetMergeCommitError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::get_merge_commit::GetMergeCommitError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::get_merge_commit::GetMergeCommitError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::get_merge_commit::GetMergeCommitError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::get_merge_commit::GetMergeCommitError::InvalidCommitException(inner) => Error::InvalidCommitException(inner),
crate::operation::get_merge_commit::GetMergeCommitError::InvalidConflictDetailLevelException(inner) => {
Error::InvalidConflictDetailLevelException(inner)
}
crate::operation::get_merge_commit::GetMergeCommitError::InvalidConflictResolutionStrategyException(inner) => {
Error::InvalidConflictResolutionStrategyException(inner)
}
crate::operation::get_merge_commit::GetMergeCommitError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::get_merge_commit::GetMergeCommitError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::get_merge_commit::GetMergeCommitError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::get_merge_commit::GetMergeCommitError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_merge_conflicts::GetMergeConflictsError) -> Self {
match err {
crate::operation::get_merge_conflicts::GetMergeConflictsError::CommitDoesNotExistException(inner) => {
Error::CommitDoesNotExistException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::CommitRequiredException(inner) => Error::CommitRequiredException(inner),
crate::operation::get_merge_conflicts::GetMergeConflictsError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::InvalidCommitException(inner) => Error::InvalidCommitException(inner),
crate::operation::get_merge_conflicts::GetMergeConflictsError::InvalidConflictDetailLevelException(inner) => {
Error::InvalidConflictDetailLevelException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::InvalidConflictResolutionStrategyException(inner) => {
Error::InvalidConflictResolutionStrategyException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::InvalidContinuationTokenException(inner) => {
Error::InvalidContinuationTokenException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::InvalidDestinationCommitSpecifierException(inner) => {
Error::InvalidDestinationCommitSpecifierException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::InvalidMaxConflictFilesException(inner) => {
Error::InvalidMaxConflictFilesException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::InvalidMergeOptionException(inner) => {
Error::InvalidMergeOptionException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::InvalidSourceCommitSpecifierException(inner) => {
Error::InvalidSourceCommitSpecifierException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::MaximumFileContentToLoadExceededException(inner) => {
Error::MaximumFileContentToLoadExceededException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::MaximumItemsToCompareExceededException(inner) => {
Error::MaximumItemsToCompareExceededException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::MergeOptionRequiredException(inner) => {
Error::MergeOptionRequiredException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::TipsDivergenceExceededException(inner) => {
Error::TipsDivergenceExceededException(inner)
}
crate::operation::get_merge_conflicts::GetMergeConflictsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_merge_options::GetMergeOptionsError) -> Self {
match err {
crate::operation::get_merge_options::GetMergeOptionsError::CommitDoesNotExistException(inner) => {
Error::CommitDoesNotExistException(inner)
}
crate::operation::get_merge_options::GetMergeOptionsError::CommitRequiredException(inner) => Error::CommitRequiredException(inner),
crate::operation::get_merge_options::GetMergeOptionsError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::get_merge_options::GetMergeOptionsError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::get_merge_options::GetMergeOptionsError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::get_merge_options::GetMergeOptionsError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::get_merge_options::GetMergeOptionsError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::get_merge_options::GetMergeOptionsError::InvalidCommitException(inner) => Error::InvalidCommitException(inner),
crate::operation::get_merge_options::GetMergeOptionsError::InvalidConflictDetailLevelException(inner) => {
Error::InvalidConflictDetailLevelException(inner)
}
crate::operation::get_merge_options::GetMergeOptionsError::InvalidConflictResolutionStrategyException(inner) => {
Error::InvalidConflictResolutionStrategyException(inner)
}
crate::operation::get_merge_options::GetMergeOptionsError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::get_merge_options::GetMergeOptionsError::MaximumFileContentToLoadExceededException(inner) => {
Error::MaximumFileContentToLoadExceededException(inner)
}
crate::operation::get_merge_options::GetMergeOptionsError::MaximumItemsToCompareExceededException(inner) => {
Error::MaximumItemsToCompareExceededException(inner)
}
crate::operation::get_merge_options::GetMergeOptionsError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::get_merge_options::GetMergeOptionsError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::get_merge_options::GetMergeOptionsError::TipsDivergenceExceededException(inner) => {
Error::TipsDivergenceExceededException(inner)
}
crate::operation::get_merge_options::GetMergeOptionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_pull_request::GetPullRequestError) -> Self {
match err {
crate::operation::get_pull_request::GetPullRequestError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::get_pull_request::GetPullRequestError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::get_pull_request::GetPullRequestError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::get_pull_request::GetPullRequestError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::get_pull_request::GetPullRequestError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::get_pull_request::GetPullRequestError::InvalidPullRequestIdException(inner) => {
Error::InvalidPullRequestIdException(inner)
}
crate::operation::get_pull_request::GetPullRequestError::PullRequestDoesNotExistException(inner) => {
Error::PullRequestDoesNotExistException(inner)
}
crate::operation::get_pull_request::GetPullRequestError::PullRequestIdRequiredException(inner) => {
Error::PullRequestIdRequiredException(inner)
}
crate::operation::get_pull_request::GetPullRequestError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<::aws_smithy_runtime_api::client::result::SdkError>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_pull_request_approval_states::GetPullRequestApprovalStatesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_pull_request_approval_states::GetPullRequestApprovalStatesError) -> Self {
match err {
crate::operation::get_pull_request_approval_states::GetPullRequestApprovalStatesError::EncryptionIntegrityChecksFailedException(
inner,
) => Error::EncryptionIntegrityChecksFailedException(inner),
crate::operation::get_pull_request_approval_states::GetPullRequestApprovalStatesError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::get_pull_request_approval_states::GetPullRequestApprovalStatesError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::get_pull_request_approval_states::GetPullRequestApprovalStatesError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::get_pull_request_approval_states::GetPullRequestApprovalStatesError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::get_pull_request_approval_states::GetPullRequestApprovalStatesError::InvalidPullRequestIdException(inner) => {
Error::InvalidPullRequestIdException(inner)
}
crate::operation::get_pull_request_approval_states::GetPullRequestApprovalStatesError::InvalidRevisionIdException(inner) => {
Error::InvalidRevisionIdException(inner)
}
crate::operation::get_pull_request_approval_states::GetPullRequestApprovalStatesError::PullRequestDoesNotExistException(inner) => {
Error::PullRequestDoesNotExistException(inner)
}
crate::operation::get_pull_request_approval_states::GetPullRequestApprovalStatesError::PullRequestIdRequiredException(inner) => {
Error::PullRequestIdRequiredException(inner)
}
crate::operation::get_pull_request_approval_states::GetPullRequestApprovalStatesError::RevisionIdRequiredException(inner) => {
Error::RevisionIdRequiredException(inner)
}
crate::operation::get_pull_request_approval_states::GetPullRequestApprovalStatesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<::aws_smithy_runtime_api::client::result::SdkError>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_pull_request_override_state::GetPullRequestOverrideStateError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_pull_request_override_state::GetPullRequestOverrideStateError) -> Self {
match err {
crate::operation::get_pull_request_override_state::GetPullRequestOverrideStateError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::get_pull_request_override_state::GetPullRequestOverrideStateError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::get_pull_request_override_state::GetPullRequestOverrideStateError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::get_pull_request_override_state::GetPullRequestOverrideStateError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::get_pull_request_override_state::GetPullRequestOverrideStateError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::get_pull_request_override_state::GetPullRequestOverrideStateError::InvalidPullRequestIdException(inner) => {
Error::InvalidPullRequestIdException(inner)
}
crate::operation::get_pull_request_override_state::GetPullRequestOverrideStateError::InvalidRevisionIdException(inner) => {
Error::InvalidRevisionIdException(inner)
}
crate::operation::get_pull_request_override_state::GetPullRequestOverrideStateError::PullRequestDoesNotExistException(inner) => {
Error::PullRequestDoesNotExistException(inner)
}
crate::operation::get_pull_request_override_state::GetPullRequestOverrideStateError::PullRequestIdRequiredException(inner) => {
Error::PullRequestIdRequiredException(inner)
}
crate::operation::get_pull_request_override_state::GetPullRequestOverrideStateError::RevisionIdRequiredException(inner) => {
Error::RevisionIdRequiredException(inner)
}
crate::operation::get_pull_request_override_state::GetPullRequestOverrideStateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_repository::GetRepositoryError) -> Self {
match err {
crate::operation::get_repository::GetRepositoryError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::get_repository::GetRepositoryError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::get_repository::GetRepositoryError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::get_repository::GetRepositoryError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::get_repository::GetRepositoryError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::get_repository::GetRepositoryError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::get_repository::GetRepositoryError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::get_repository::GetRepositoryError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::get_repository::GetRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::get_repository_triggers::GetRepositoryTriggersError) -> Self {
match err {
crate::operation::get_repository_triggers::GetRepositoryTriggersError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::get_repository_triggers::GetRepositoryTriggersError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::get_repository_triggers::GetRepositoryTriggersError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::get_repository_triggers::GetRepositoryTriggersError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::get_repository_triggers::GetRepositoryTriggersError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::get_repository_triggers::GetRepositoryTriggersError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::get_repository_triggers::GetRepositoryTriggersError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::get_repository_triggers::GetRepositoryTriggersError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::get_repository_triggers::GetRepositoryTriggersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::list_approval_rule_templates::ListApprovalRuleTemplatesError) -> Self {
match err {
crate::operation::list_approval_rule_templates::ListApprovalRuleTemplatesError::InvalidContinuationTokenException(inner) => {
Error::InvalidContinuationTokenException(inner)
}
crate::operation::list_approval_rule_templates::ListApprovalRuleTemplatesError::InvalidMaxResultsException(inner) => {
Error::InvalidMaxResultsException(inner)
}
crate::operation::list_approval_rule_templates::ListApprovalRuleTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_associated_approval_rule_templates_for_repository::ListAssociatedApprovalRuleTemplatesForRepositoryError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_associated_approval_rule_templates_for_repository::ListAssociatedApprovalRuleTemplatesForRepositoryError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(
err: crate::operation::list_associated_approval_rule_templates_for_repository::ListAssociatedApprovalRuleTemplatesForRepositoryError,
) -> Self {
match err {
crate::operation::list_associated_approval_rule_templates_for_repository::ListAssociatedApprovalRuleTemplatesForRepositoryError::EncryptionIntegrityChecksFailedException(inner) => Error::EncryptionIntegrityChecksFailedException(inner),
crate::operation::list_associated_approval_rule_templates_for_repository::ListAssociatedApprovalRuleTemplatesForRepositoryError::EncryptionKeyAccessDeniedException(inner) => Error::EncryptionKeyAccessDeniedException(inner),
crate::operation::list_associated_approval_rule_templates_for_repository::ListAssociatedApprovalRuleTemplatesForRepositoryError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::list_associated_approval_rule_templates_for_repository::ListAssociatedApprovalRuleTemplatesForRepositoryError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::list_associated_approval_rule_templates_for_repository::ListAssociatedApprovalRuleTemplatesForRepositoryError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::list_associated_approval_rule_templates_for_repository::ListAssociatedApprovalRuleTemplatesForRepositoryError::InvalidContinuationTokenException(inner) => Error::InvalidContinuationTokenException(inner),
crate::operation::list_associated_approval_rule_templates_for_repository::ListAssociatedApprovalRuleTemplatesForRepositoryError::InvalidMaxResultsException(inner) => Error::InvalidMaxResultsException(inner),
crate::operation::list_associated_approval_rule_templates_for_repository::ListAssociatedApprovalRuleTemplatesForRepositoryError::InvalidRepositoryNameException(inner) => Error::InvalidRepositoryNameException(inner),
crate::operation::list_associated_approval_rule_templates_for_repository::ListAssociatedApprovalRuleTemplatesForRepositoryError::RepositoryDoesNotExistException(inner) => Error::RepositoryDoesNotExistException(inner),
crate::operation::list_associated_approval_rule_templates_for_repository::ListAssociatedApprovalRuleTemplatesForRepositoryError::RepositoryNameRequiredException(inner) => Error::RepositoryNameRequiredException(inner),
crate::operation::list_associated_approval_rule_templates_for_repository::ListAssociatedApprovalRuleTemplatesForRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::list_branches::ListBranchesError) -> Self {
match err {
crate::operation::list_branches::ListBranchesError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::list_branches::ListBranchesError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::list_branches::ListBranchesError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::list_branches::ListBranchesError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::list_branches::ListBranchesError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::list_branches::ListBranchesError::InvalidContinuationTokenException(inner) => {
Error::InvalidContinuationTokenException(inner)
}
crate::operation::list_branches::ListBranchesError::InvalidRepositoryNameException(inner) => Error::InvalidRepositoryNameException(inner),
crate::operation::list_branches::ListBranchesError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::list_branches::ListBranchesError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::list_branches::ListBranchesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::list_file_commit_history::ListFileCommitHistoryError) -> Self {
match err {
crate::operation::list_file_commit_history::ListFileCommitHistoryError::CommitDoesNotExistException(inner) => {
Error::CommitDoesNotExistException(inner)
}
crate::operation::list_file_commit_history::ListFileCommitHistoryError::CommitRequiredException(inner) => {
Error::CommitRequiredException(inner)
}
crate::operation::list_file_commit_history::ListFileCommitHistoryError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::list_file_commit_history::ListFileCommitHistoryError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::list_file_commit_history::ListFileCommitHistoryError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::list_file_commit_history::ListFileCommitHistoryError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::list_file_commit_history::ListFileCommitHistoryError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::list_file_commit_history::ListFileCommitHistoryError::InvalidCommitException(inner) => {
Error::InvalidCommitException(inner)
}
crate::operation::list_file_commit_history::ListFileCommitHistoryError::InvalidContinuationTokenException(inner) => {
Error::InvalidContinuationTokenException(inner)
}
crate::operation::list_file_commit_history::ListFileCommitHistoryError::InvalidMaxResultsException(inner) => {
Error::InvalidMaxResultsException(inner)
}
crate::operation::list_file_commit_history::ListFileCommitHistoryError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::list_file_commit_history::ListFileCommitHistoryError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::list_file_commit_history::ListFileCommitHistoryError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::list_file_commit_history::ListFileCommitHistoryError::TipsDivergenceExceededException(inner) => {
Error::TipsDivergenceExceededException(inner)
}
crate::operation::list_file_commit_history::ListFileCommitHistoryError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::list_pull_requests::ListPullRequestsError) -> Self {
match err {
crate::operation::list_pull_requests::ListPullRequestsError::AuthorDoesNotExistException(inner) => {
Error::AuthorDoesNotExistException(inner)
}
crate::operation::list_pull_requests::ListPullRequestsError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::list_pull_requests::ListPullRequestsError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::list_pull_requests::ListPullRequestsError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::list_pull_requests::ListPullRequestsError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::list_pull_requests::ListPullRequestsError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::list_pull_requests::ListPullRequestsError::InvalidAuthorArnException(inner) => Error::InvalidAuthorArnException(inner),
crate::operation::list_pull_requests::ListPullRequestsError::InvalidContinuationTokenException(inner) => {
Error::InvalidContinuationTokenException(inner)
}
crate::operation::list_pull_requests::ListPullRequestsError::InvalidMaxResultsException(inner) => {
Error::InvalidMaxResultsException(inner)
}
crate::operation::list_pull_requests::ListPullRequestsError::InvalidPullRequestStatusException(inner) => {
Error::InvalidPullRequestStatusException(inner)
}
crate::operation::list_pull_requests::ListPullRequestsError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::list_pull_requests::ListPullRequestsError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::list_pull_requests::ListPullRequestsError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::list_pull_requests::ListPullRequestsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::list_repositories::ListRepositoriesError) -> Self {
match err {
crate::operation::list_repositories::ListRepositoriesError::InvalidContinuationTokenException(inner) => {
Error::InvalidContinuationTokenException(inner)
}
crate::operation::list_repositories::ListRepositoriesError::InvalidOrderException(inner) => Error::InvalidOrderException(inner),
crate::operation::list_repositories::ListRepositoriesError::InvalidSortByException(inner) => Error::InvalidSortByException(inner),
crate::operation::list_repositories::ListRepositoriesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_repositories_for_approval_rule_template::ListRepositoriesForApprovalRuleTemplateError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_repositories_for_approval_rule_template::ListRepositoriesForApprovalRuleTemplateError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::list_repositories_for_approval_rule_template::ListRepositoriesForApprovalRuleTemplateError) -> Self {
match err {
crate::operation::list_repositories_for_approval_rule_template::ListRepositoriesForApprovalRuleTemplateError::ApprovalRuleTemplateDoesNotExistException(inner) => Error::ApprovalRuleTemplateDoesNotExistException(inner),
crate::operation::list_repositories_for_approval_rule_template::ListRepositoriesForApprovalRuleTemplateError::ApprovalRuleTemplateNameRequiredException(inner) => Error::ApprovalRuleTemplateNameRequiredException(inner),
crate::operation::list_repositories_for_approval_rule_template::ListRepositoriesForApprovalRuleTemplateError::EncryptionIntegrityChecksFailedException(inner) => Error::EncryptionIntegrityChecksFailedException(inner),
crate::operation::list_repositories_for_approval_rule_template::ListRepositoriesForApprovalRuleTemplateError::EncryptionKeyAccessDeniedException(inner) => Error::EncryptionKeyAccessDeniedException(inner),
crate::operation::list_repositories_for_approval_rule_template::ListRepositoriesForApprovalRuleTemplateError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::list_repositories_for_approval_rule_template::ListRepositoriesForApprovalRuleTemplateError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::list_repositories_for_approval_rule_template::ListRepositoriesForApprovalRuleTemplateError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::list_repositories_for_approval_rule_template::ListRepositoriesForApprovalRuleTemplateError::InvalidApprovalRuleTemplateNameException(inner) => Error::InvalidApprovalRuleTemplateNameException(inner),
crate::operation::list_repositories_for_approval_rule_template::ListRepositoriesForApprovalRuleTemplateError::InvalidContinuationTokenException(inner) => Error::InvalidContinuationTokenException(inner),
crate::operation::list_repositories_for_approval_rule_template::ListRepositoriesForApprovalRuleTemplateError::InvalidMaxResultsException(inner) => Error::InvalidMaxResultsException(inner),
crate::operation::list_repositories_for_approval_rule_template::ListRepositoriesForApprovalRuleTemplateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
match err {
crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidResourceArnException(inner) => {
Error::InvalidResourceArnException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceArnRequiredException(inner) => {
Error::ResourceArnRequiredException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError) -> Self {
match err {
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::BranchDoesNotExistException(inner) => {
Error::BranchDoesNotExistException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::BranchNameIsTagNameException(inner) => {
Error::BranchNameIsTagNameException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::BranchNameRequiredException(inner) => {
Error::BranchNameRequiredException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::CommitDoesNotExistException(inner) => {
Error::CommitDoesNotExistException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::CommitRequiredException(inner) => {
Error::CommitRequiredException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::ConcurrentReferenceUpdateException(inner) => {
Error::ConcurrentReferenceUpdateException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::InvalidBranchNameException(inner) => {
Error::InvalidBranchNameException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::InvalidCommitException(inner) => {
Error::InvalidCommitException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::InvalidTargetBranchException(inner) => {
Error::InvalidTargetBranchException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::ManualMergeRequiredException(inner) => {
Error::ManualMergeRequiredException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::TipsDivergenceExceededException(inner) => {
Error::TipsDivergenceExceededException(inner)
}
crate::operation::merge_branches_by_fast_forward::MergeBranchesByFastForwardError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::merge_branches_by_squash::MergeBranchesBySquashError) -> Self {
match err {
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::BranchDoesNotExistException(inner) => {
Error::BranchDoesNotExistException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::BranchNameIsTagNameException(inner) => {
Error::BranchNameIsTagNameException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::BranchNameRequiredException(inner) => {
Error::BranchNameRequiredException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::CommitDoesNotExistException(inner) => {
Error::CommitDoesNotExistException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::CommitMessageLengthExceededException(inner) => {
Error::CommitMessageLengthExceededException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::CommitRequiredException(inner) => {
Error::CommitRequiredException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::ConcurrentReferenceUpdateException(inner) => {
Error::ConcurrentReferenceUpdateException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::FileContentSizeLimitExceededException(inner) => {
Error::FileContentSizeLimitExceededException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::FileModeRequiredException(inner) => {
Error::FileModeRequiredException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::FolderContentSizeLimitExceededException(inner) => {
Error::FolderContentSizeLimitExceededException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::InvalidBranchNameException(inner) => {
Error::InvalidBranchNameException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::InvalidCommitException(inner) => {
Error::InvalidCommitException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::InvalidConflictDetailLevelException(inner) => {
Error::InvalidConflictDetailLevelException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::InvalidConflictResolutionException(inner) => {
Error::InvalidConflictResolutionException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::InvalidConflictResolutionStrategyException(inner) => {
Error::InvalidConflictResolutionStrategyException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::InvalidEmailException(inner) => {
Error::InvalidEmailException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::InvalidFileModeException(inner) => {
Error::InvalidFileModeException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::InvalidPathException(inner) => Error::InvalidPathException(inner),
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::InvalidReplacementContentException(inner) => {
Error::InvalidReplacementContentException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::InvalidReplacementTypeException(inner) => {
Error::InvalidReplacementTypeException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::InvalidTargetBranchException(inner) => {
Error::InvalidTargetBranchException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::ManualMergeRequiredException(inner) => {
Error::ManualMergeRequiredException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::MaximumConflictResolutionEntriesExceededException(inner) => {
Error::MaximumConflictResolutionEntriesExceededException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::MaximumFileContentToLoadExceededException(inner) => {
Error::MaximumFileContentToLoadExceededException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::MaximumItemsToCompareExceededException(inner) => {
Error::MaximumItemsToCompareExceededException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::MultipleConflictResolutionEntriesException(inner) => {
Error::MultipleConflictResolutionEntriesException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::NameLengthExceededException(inner) => {
Error::NameLengthExceededException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::PathRequiredException(inner) => {
Error::PathRequiredException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::ReplacementContentRequiredException(inner) => {
Error::ReplacementContentRequiredException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::ReplacementTypeRequiredException(inner) => {
Error::ReplacementTypeRequiredException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::TipsDivergenceExceededException(inner) => {
Error::TipsDivergenceExceededException(inner)
}
crate::operation::merge_branches_by_squash::MergeBranchesBySquashError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError) -> Self {
match err {
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::BranchDoesNotExistException(inner) => {
Error::BranchDoesNotExistException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::BranchNameIsTagNameException(inner) => {
Error::BranchNameIsTagNameException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::BranchNameRequiredException(inner) => {
Error::BranchNameRequiredException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::CommitDoesNotExistException(inner) => {
Error::CommitDoesNotExistException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::CommitMessageLengthExceededException(inner) => {
Error::CommitMessageLengthExceededException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::CommitRequiredException(inner) => {
Error::CommitRequiredException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::ConcurrentReferenceUpdateException(inner) => {
Error::ConcurrentReferenceUpdateException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::FileContentSizeLimitExceededException(inner) => {
Error::FileContentSizeLimitExceededException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::FileModeRequiredException(inner) => {
Error::FileModeRequiredException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::FolderContentSizeLimitExceededException(inner) => {
Error::FolderContentSizeLimitExceededException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::InvalidBranchNameException(inner) => {
Error::InvalidBranchNameException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::InvalidCommitException(inner) => {
Error::InvalidCommitException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::InvalidConflictDetailLevelException(inner) => {
Error::InvalidConflictDetailLevelException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::InvalidConflictResolutionException(inner) => {
Error::InvalidConflictResolutionException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::InvalidConflictResolutionStrategyException(inner) => {
Error::InvalidConflictResolutionStrategyException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::InvalidEmailException(inner) => {
Error::InvalidEmailException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::InvalidFileModeException(inner) => {
Error::InvalidFileModeException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::InvalidPathException(inner) => {
Error::InvalidPathException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::InvalidReplacementContentException(inner) => {
Error::InvalidReplacementContentException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::InvalidReplacementTypeException(inner) => {
Error::InvalidReplacementTypeException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::InvalidTargetBranchException(inner) => {
Error::InvalidTargetBranchException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::ManualMergeRequiredException(inner) => {
Error::ManualMergeRequiredException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::MaximumConflictResolutionEntriesExceededException(inner) => {
Error::MaximumConflictResolutionEntriesExceededException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::MaximumFileContentToLoadExceededException(inner) => {
Error::MaximumFileContentToLoadExceededException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::MaximumItemsToCompareExceededException(inner) => {
Error::MaximumItemsToCompareExceededException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::MultipleConflictResolutionEntriesException(inner) => {
Error::MultipleConflictResolutionEntriesException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::NameLengthExceededException(inner) => {
Error::NameLengthExceededException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::PathRequiredException(inner) => {
Error::PathRequiredException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::ReplacementContentRequiredException(inner) => {
Error::ReplacementContentRequiredException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::ReplacementTypeRequiredException(inner) => {
Error::ReplacementTypeRequiredException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::TipsDivergenceExceededException(inner) => {
Error::TipsDivergenceExceededException(inner)
}
crate::operation::merge_branches_by_three_way::MergeBranchesByThreeWayError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError) -> Self {
match err {
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::ConcurrentReferenceUpdateException(inner) => Error::ConcurrentReferenceUpdateException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::EncryptionIntegrityChecksFailedException(inner) => Error::EncryptionIntegrityChecksFailedException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::EncryptionKeyAccessDeniedException(inner) => Error::EncryptionKeyAccessDeniedException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::InvalidCommitIdException(inner) => Error::InvalidCommitIdException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::InvalidPullRequestIdException(inner) => Error::InvalidPullRequestIdException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::InvalidRepositoryNameException(inner) => Error::InvalidRepositoryNameException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::ManualMergeRequiredException(inner) => Error::ManualMergeRequiredException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::PullRequestAlreadyClosedException(inner) => Error::PullRequestAlreadyClosedException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::PullRequestApprovalRulesNotSatisfiedException(inner) => Error::PullRequestApprovalRulesNotSatisfiedException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::PullRequestDoesNotExistException(inner) => Error::PullRequestDoesNotExistException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::PullRequestIdRequiredException(inner) => Error::PullRequestIdRequiredException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::ReferenceDoesNotExistException(inner) => Error::ReferenceDoesNotExistException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::RepositoryDoesNotExistException(inner) => Error::RepositoryDoesNotExistException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::RepositoryNameRequiredException(inner) => Error::RepositoryNameRequiredException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::RepositoryNotAssociatedWithPullRequestException(inner) => Error::RepositoryNotAssociatedWithPullRequestException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::TipOfSourceReferenceIsDifferentException(inner) => Error::TipOfSourceReferenceIsDifferentException(inner),
crate::operation::merge_pull_request_by_fast_forward::MergePullRequestByFastForwardError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError) -> Self {
match err {
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::CommitMessageLengthExceededException(inner) => {
Error::CommitMessageLengthExceededException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::ConcurrentReferenceUpdateException(inner) => {
Error::ConcurrentReferenceUpdateException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::FileContentSizeLimitExceededException(inner) => {
Error::FileContentSizeLimitExceededException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::FolderContentSizeLimitExceededException(inner) => {
Error::FolderContentSizeLimitExceededException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::InvalidCommitIdException(inner) => {
Error::InvalidCommitIdException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::InvalidConflictDetailLevelException(inner) => {
Error::InvalidConflictDetailLevelException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::InvalidConflictResolutionException(inner) => {
Error::InvalidConflictResolutionException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::InvalidConflictResolutionStrategyException(inner) => {
Error::InvalidConflictResolutionStrategyException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::InvalidEmailException(inner) => {
Error::InvalidEmailException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::InvalidFileModeException(inner) => {
Error::InvalidFileModeException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::InvalidPathException(inner) => {
Error::InvalidPathException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::InvalidPullRequestIdException(inner) => {
Error::InvalidPullRequestIdException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::InvalidReplacementContentException(inner) => {
Error::InvalidReplacementContentException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::InvalidReplacementTypeException(inner) => {
Error::InvalidReplacementTypeException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::ManualMergeRequiredException(inner) => {
Error::ManualMergeRequiredException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::MaximumConflictResolutionEntriesExceededException(
inner,
) => Error::MaximumConflictResolutionEntriesExceededException(inner),
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::MaximumFileContentToLoadExceededException(inner) => {
Error::MaximumFileContentToLoadExceededException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::MaximumItemsToCompareExceededException(inner) => {
Error::MaximumItemsToCompareExceededException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::MultipleConflictResolutionEntriesException(inner) => {
Error::MultipleConflictResolutionEntriesException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::NameLengthExceededException(inner) => {
Error::NameLengthExceededException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::PathRequiredException(inner) => {
Error::PathRequiredException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::PullRequestAlreadyClosedException(inner) => {
Error::PullRequestAlreadyClosedException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::PullRequestApprovalRulesNotSatisfiedException(inner) => {
Error::PullRequestApprovalRulesNotSatisfiedException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::PullRequestDoesNotExistException(inner) => {
Error::PullRequestDoesNotExistException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::PullRequestIdRequiredException(inner) => {
Error::PullRequestIdRequiredException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::ReplacementContentRequiredException(inner) => {
Error::ReplacementContentRequiredException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::ReplacementTypeRequiredException(inner) => {
Error::ReplacementTypeRequiredException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::RepositoryNotAssociatedWithPullRequestException(inner) => {
Error::RepositoryNotAssociatedWithPullRequestException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::TipOfSourceReferenceIsDifferentException(inner) => {
Error::TipOfSourceReferenceIsDifferentException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::TipsDivergenceExceededException(inner) => {
Error::TipsDivergenceExceededException(inner)
}
crate::operation::merge_pull_request_by_squash::MergePullRequestBySquashError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<::aws_smithy_runtime_api::client::result::SdkError>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError) -> Self {
match err {
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::CommitMessageLengthExceededException(inner) => {
Error::CommitMessageLengthExceededException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::ConcurrentReferenceUpdateException(inner) => {
Error::ConcurrentReferenceUpdateException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::FileContentSizeLimitExceededException(inner) => {
Error::FileContentSizeLimitExceededException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::FolderContentSizeLimitExceededException(inner) => {
Error::FolderContentSizeLimitExceededException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::InvalidCommitIdException(inner) => {
Error::InvalidCommitIdException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::InvalidConflictDetailLevelException(inner) => {
Error::InvalidConflictDetailLevelException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::InvalidConflictResolutionException(inner) => {
Error::InvalidConflictResolutionException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::InvalidConflictResolutionStrategyException(inner) => {
Error::InvalidConflictResolutionStrategyException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::InvalidEmailException(inner) => {
Error::InvalidEmailException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::InvalidFileModeException(inner) => {
Error::InvalidFileModeException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::InvalidPathException(inner) => {
Error::InvalidPathException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::InvalidPullRequestIdException(inner) => {
Error::InvalidPullRequestIdException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::InvalidReplacementContentException(inner) => {
Error::InvalidReplacementContentException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::InvalidReplacementTypeException(inner) => {
Error::InvalidReplacementTypeException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::ManualMergeRequiredException(inner) => {
Error::ManualMergeRequiredException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::MaximumConflictResolutionEntriesExceededException(
inner,
) => Error::MaximumConflictResolutionEntriesExceededException(inner),
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::MaximumFileContentToLoadExceededException(inner) => {
Error::MaximumFileContentToLoadExceededException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::MaximumItemsToCompareExceededException(inner) => {
Error::MaximumItemsToCompareExceededException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::MultipleConflictResolutionEntriesException(inner) => {
Error::MultipleConflictResolutionEntriesException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::NameLengthExceededException(inner) => {
Error::NameLengthExceededException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::PathRequiredException(inner) => {
Error::PathRequiredException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::PullRequestAlreadyClosedException(inner) => {
Error::PullRequestAlreadyClosedException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::PullRequestApprovalRulesNotSatisfiedException(
inner,
) => Error::PullRequestApprovalRulesNotSatisfiedException(inner),
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::PullRequestDoesNotExistException(inner) => {
Error::PullRequestDoesNotExistException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::PullRequestIdRequiredException(inner) => {
Error::PullRequestIdRequiredException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::ReplacementContentRequiredException(inner) => {
Error::ReplacementContentRequiredException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::ReplacementTypeRequiredException(inner) => {
Error::ReplacementTypeRequiredException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::RepositoryNotAssociatedWithPullRequestException(
inner,
) => Error::RepositoryNotAssociatedWithPullRequestException(inner),
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::TipOfSourceReferenceIsDifferentException(inner) => {
Error::TipOfSourceReferenceIsDifferentException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::TipsDivergenceExceededException(inner) => {
Error::TipsDivergenceExceededException(inner)
}
crate::operation::merge_pull_request_by_three_way::MergePullRequestByThreeWayError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError) -> Self {
match err {
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError::EncryptionIntegrityChecksFailedException(inner) => Error::EncryptionIntegrityChecksFailedException(inner),
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError::EncryptionKeyAccessDeniedException(inner) => Error::EncryptionKeyAccessDeniedException(inner),
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError::InvalidOverrideStatusException(inner) => Error::InvalidOverrideStatusException(inner),
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError::InvalidPullRequestIdException(inner) => Error::InvalidPullRequestIdException(inner),
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError::InvalidRevisionIdException(inner) => Error::InvalidRevisionIdException(inner),
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError::OverrideAlreadySetException(inner) => Error::OverrideAlreadySetException(inner),
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError::OverrideStatusRequiredException(inner) => Error::OverrideStatusRequiredException(inner),
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError::PullRequestAlreadyClosedException(inner) => Error::PullRequestAlreadyClosedException(inner),
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError::PullRequestDoesNotExistException(inner) => Error::PullRequestDoesNotExistException(inner),
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError::PullRequestIdRequiredException(inner) => Error::PullRequestIdRequiredException(inner),
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError::RevisionIdRequiredException(inner) => Error::RevisionIdRequiredException(inner),
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError::RevisionNotCurrentException(inner) => Error::RevisionNotCurrentException(inner),
crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<::aws_smithy_runtime_api::client::result::SdkError>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError) -> Self {
match err {
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::BeforeCommitIdAndAfterCommitIdAreSameException(
inner,
) => Error::BeforeCommitIdAndAfterCommitIdAreSameException(inner),
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::ClientRequestTokenRequiredException(inner) => {
Error::ClientRequestTokenRequiredException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::CommentContentRequiredException(inner) => {
Error::CommentContentRequiredException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::CommentContentSizeLimitExceededException(
inner,
) => Error::CommentContentSizeLimitExceededException(inner),
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::CommitDoesNotExistException(inner) => {
Error::CommitDoesNotExistException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::CommitIdRequiredException(inner) => {
Error::CommitIdRequiredException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::EncryptionIntegrityChecksFailedException(
inner,
) => Error::EncryptionIntegrityChecksFailedException(inner),
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::IdempotencyParameterMismatchException(inner) => {
Error::IdempotencyParameterMismatchException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::InvalidClientRequestTokenException(inner) => {
Error::InvalidClientRequestTokenException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::InvalidCommitIdException(inner) => {
Error::InvalidCommitIdException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::InvalidFileLocationException(inner) => {
Error::InvalidFileLocationException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::InvalidFilePositionException(inner) => {
Error::InvalidFilePositionException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::InvalidPathException(inner) => {
Error::InvalidPathException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::InvalidRelativeFileVersionEnumException(inner) => {
Error::InvalidRelativeFileVersionEnumException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::PathDoesNotExistException(inner) => {
Error::PathDoesNotExistException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::PathRequiredException(inner) => {
Error::PathRequiredException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::post_comment_for_compared_commit::PostCommentForComparedCommitError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError) -> Self {
match err {
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::BeforeCommitIdAndAfterCommitIdAreSameException(
inner,
) => Error::BeforeCommitIdAndAfterCommitIdAreSameException(inner),
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::ClientRequestTokenRequiredException(inner) => {
Error::ClientRequestTokenRequiredException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::CommentContentRequiredException(inner) => {
Error::CommentContentRequiredException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::CommentContentSizeLimitExceededException(inner) => {
Error::CommentContentSizeLimitExceededException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::CommitDoesNotExistException(inner) => {
Error::CommitDoesNotExistException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::CommitIdRequiredException(inner) => {
Error::CommitIdRequiredException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::IdempotencyParameterMismatchException(inner) => {
Error::IdempotencyParameterMismatchException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::InvalidClientRequestTokenException(inner) => {
Error::InvalidClientRequestTokenException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::InvalidCommitIdException(inner) => {
Error::InvalidCommitIdException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::InvalidFileLocationException(inner) => {
Error::InvalidFileLocationException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::InvalidFilePositionException(inner) => {
Error::InvalidFilePositionException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::InvalidPathException(inner) => {
Error::InvalidPathException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::InvalidPullRequestIdException(inner) => {
Error::InvalidPullRequestIdException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::InvalidRelativeFileVersionEnumException(inner) => {
Error::InvalidRelativeFileVersionEnumException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::PathDoesNotExistException(inner) => {
Error::PathDoesNotExistException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::PathRequiredException(inner) => {
Error::PathRequiredException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::PullRequestDoesNotExistException(inner) => {
Error::PullRequestDoesNotExistException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::PullRequestIdRequiredException(inner) => {
Error::PullRequestIdRequiredException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::RepositoryNotAssociatedWithPullRequestException(
inner,
) => Error::RepositoryNotAssociatedWithPullRequestException(inner),
crate::operation::post_comment_for_pull_request::PostCommentForPullRequestError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::post_comment_reply::PostCommentReplyError) -> Self {
match err {
crate::operation::post_comment_reply::PostCommentReplyError::ClientRequestTokenRequiredException(inner) => {
Error::ClientRequestTokenRequiredException(inner)
}
crate::operation::post_comment_reply::PostCommentReplyError::CommentContentRequiredException(inner) => {
Error::CommentContentRequiredException(inner)
}
crate::operation::post_comment_reply::PostCommentReplyError::CommentContentSizeLimitExceededException(inner) => {
Error::CommentContentSizeLimitExceededException(inner)
}
crate::operation::post_comment_reply::PostCommentReplyError::CommentDoesNotExistException(inner) => {
Error::CommentDoesNotExistException(inner)
}
crate::operation::post_comment_reply::PostCommentReplyError::CommentIdRequiredException(inner) => {
Error::CommentIdRequiredException(inner)
}
crate::operation::post_comment_reply::PostCommentReplyError::IdempotencyParameterMismatchException(inner) => {
Error::IdempotencyParameterMismatchException(inner)
}
crate::operation::post_comment_reply::PostCommentReplyError::InvalidClientRequestTokenException(inner) => {
Error::InvalidClientRequestTokenException(inner)
}
crate::operation::post_comment_reply::PostCommentReplyError::InvalidCommentIdException(inner) => Error::InvalidCommentIdException(inner),
crate::operation::post_comment_reply::PostCommentReplyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::put_comment_reaction::PutCommentReactionError) -> Self {
match err {
crate::operation::put_comment_reaction::PutCommentReactionError::CommentDeletedException(inner) => Error::CommentDeletedException(inner),
crate::operation::put_comment_reaction::PutCommentReactionError::CommentDoesNotExistException(inner) => {
Error::CommentDoesNotExistException(inner)
}
crate::operation::put_comment_reaction::PutCommentReactionError::CommentIdRequiredException(inner) => {
Error::CommentIdRequiredException(inner)
}
crate::operation::put_comment_reaction::PutCommentReactionError::InvalidCommentIdException(inner) => {
Error::InvalidCommentIdException(inner)
}
crate::operation::put_comment_reaction::PutCommentReactionError::InvalidReactionValueException(inner) => {
Error::InvalidReactionValueException(inner)
}
crate::operation::put_comment_reaction::PutCommentReactionError::ReactionLimitExceededException(inner) => {
Error::ReactionLimitExceededException(inner)
}
crate::operation::put_comment_reaction::PutCommentReactionError::ReactionValueRequiredException(inner) => {
Error::ReactionValueRequiredException(inner)
}
crate::operation::put_comment_reaction::PutCommentReactionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::put_file::PutFileError) -> Self {
match err {
crate::operation::put_file::PutFileError::BranchDoesNotExistException(inner) => Error::BranchDoesNotExistException(inner),
crate::operation::put_file::PutFileError::BranchNameIsTagNameException(inner) => Error::BranchNameIsTagNameException(inner),
crate::operation::put_file::PutFileError::BranchNameRequiredException(inner) => Error::BranchNameRequiredException(inner),
crate::operation::put_file::PutFileError::CommitMessageLengthExceededException(inner) => {
Error::CommitMessageLengthExceededException(inner)
}
crate::operation::put_file::PutFileError::DirectoryNameConflictsWithFileNameException(inner) => {
Error::DirectoryNameConflictsWithFileNameException(inner)
}
crate::operation::put_file::PutFileError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::put_file::PutFileError::EncryptionKeyAccessDeniedException(inner) => Error::EncryptionKeyAccessDeniedException(inner),
crate::operation::put_file::PutFileError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::put_file::PutFileError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::put_file::PutFileError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::put_file::PutFileError::FileContentRequiredException(inner) => Error::FileContentRequiredException(inner),
crate::operation::put_file::PutFileError::FileContentSizeLimitExceededException(inner) => {
Error::FileContentSizeLimitExceededException(inner)
}
crate::operation::put_file::PutFileError::FileNameConflictsWithDirectoryNameException(inner) => {
Error::FileNameConflictsWithDirectoryNameException(inner)
}
crate::operation::put_file::PutFileError::FilePathConflictsWithSubmodulePathException(inner) => {
Error::FilePathConflictsWithSubmodulePathException(inner)
}
crate::operation::put_file::PutFileError::FolderContentSizeLimitExceededException(inner) => {
Error::FolderContentSizeLimitExceededException(inner)
}
crate::operation::put_file::PutFileError::InvalidBranchNameException(inner) => Error::InvalidBranchNameException(inner),
crate::operation::put_file::PutFileError::InvalidDeletionParameterException(inner) => Error::InvalidDeletionParameterException(inner),
crate::operation::put_file::PutFileError::InvalidEmailException(inner) => Error::InvalidEmailException(inner),
crate::operation::put_file::PutFileError::InvalidFileModeException(inner) => Error::InvalidFileModeException(inner),
crate::operation::put_file::PutFileError::InvalidParentCommitIdException(inner) => Error::InvalidParentCommitIdException(inner),
crate::operation::put_file::PutFileError::InvalidPathException(inner) => Error::InvalidPathException(inner),
crate::operation::put_file::PutFileError::InvalidRepositoryNameException(inner) => Error::InvalidRepositoryNameException(inner),
crate::operation::put_file::PutFileError::NameLengthExceededException(inner) => Error::NameLengthExceededException(inner),
crate::operation::put_file::PutFileError::ParentCommitDoesNotExistException(inner) => Error::ParentCommitDoesNotExistException(inner),
crate::operation::put_file::PutFileError::ParentCommitIdOutdatedException(inner) => Error::ParentCommitIdOutdatedException(inner),
crate::operation::put_file::PutFileError::ParentCommitIdRequiredException(inner) => Error::ParentCommitIdRequiredException(inner),
crate::operation::put_file::PutFileError::PathRequiredException(inner) => Error::PathRequiredException(inner),
crate::operation::put_file::PutFileError::RepositoryDoesNotExistException(inner) => Error::RepositoryDoesNotExistException(inner),
crate::operation::put_file::PutFileError::RepositoryNameRequiredException(inner) => Error::RepositoryNameRequiredException(inner),
crate::operation::put_file::PutFileError::SameFileContentException(inner) => Error::SameFileContentException(inner),
crate::operation::put_file::PutFileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::put_repository_triggers::PutRepositoryTriggersError) -> Self {
match err {
crate::operation::put_repository_triggers::PutRepositoryTriggersError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::InvalidRepositoryTriggerBranchNameException(inner) => {
Error::InvalidRepositoryTriggerBranchNameException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::InvalidRepositoryTriggerCustomDataException(inner) => {
Error::InvalidRepositoryTriggerCustomDataException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::InvalidRepositoryTriggerDestinationArnException(inner) => {
Error::InvalidRepositoryTriggerDestinationArnException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::InvalidRepositoryTriggerEventsException(inner) => {
Error::InvalidRepositoryTriggerEventsException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::InvalidRepositoryTriggerNameException(inner) => {
Error::InvalidRepositoryTriggerNameException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::InvalidRepositoryTriggerRegionException(inner) => {
Error::InvalidRepositoryTriggerRegionException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::MaximumBranchesExceededException(inner) => {
Error::MaximumBranchesExceededException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::MaximumRepositoryTriggersExceededException(inner) => {
Error::MaximumRepositoryTriggersExceededException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::RepositoryTriggerBranchNameListRequiredException(inner) => {
Error::RepositoryTriggerBranchNameListRequiredException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::RepositoryTriggerDestinationArnRequiredException(inner) => {
Error::RepositoryTriggerDestinationArnRequiredException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::RepositoryTriggerEventsListRequiredException(inner) => {
Error::RepositoryTriggerEventsListRequiredException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::RepositoryTriggerNameRequiredException(inner) => {
Error::RepositoryTriggerNameRequiredException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::RepositoryTriggersListRequiredException(inner) => {
Error::RepositoryTriggersListRequiredException(inner)
}
crate::operation::put_repository_triggers::PutRepositoryTriggersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
match err {
crate::operation::tag_resource::TagResourceError::InvalidRepositoryNameException(inner) => Error::InvalidRepositoryNameException(inner),
crate::operation::tag_resource::TagResourceError::InvalidResourceArnException(inner) => Error::InvalidResourceArnException(inner),
crate::operation::tag_resource::TagResourceError::InvalidSystemTagUsageException(inner) => Error::InvalidSystemTagUsageException(inner),
crate::operation::tag_resource::TagResourceError::InvalidTagsMapException(inner) => Error::InvalidTagsMapException(inner),
crate::operation::tag_resource::TagResourceError::RepositoryDoesNotExistException(inner) => Error::RepositoryDoesNotExistException(inner),
crate::operation::tag_resource::TagResourceError::ResourceArnRequiredException(inner) => Error::ResourceArnRequiredException(inner),
crate::operation::tag_resource::TagResourceError::TagPolicyException(inner) => Error::TagPolicyException(inner),
crate::operation::tag_resource::TagResourceError::TagsMapRequiredException(inner) => Error::TagsMapRequiredException(inner),
crate::operation::tag_resource::TagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::test_repository_triggers::TestRepositoryTriggersError) -> Self {
match err {
crate::operation::test_repository_triggers::TestRepositoryTriggersError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::InvalidRepositoryTriggerBranchNameException(inner) => {
Error::InvalidRepositoryTriggerBranchNameException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::InvalidRepositoryTriggerCustomDataException(inner) => {
Error::InvalidRepositoryTriggerCustomDataException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::InvalidRepositoryTriggerDestinationArnException(inner) => {
Error::InvalidRepositoryTriggerDestinationArnException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::InvalidRepositoryTriggerEventsException(inner) => {
Error::InvalidRepositoryTriggerEventsException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::InvalidRepositoryTriggerNameException(inner) => {
Error::InvalidRepositoryTriggerNameException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::InvalidRepositoryTriggerRegionException(inner) => {
Error::InvalidRepositoryTriggerRegionException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::MaximumBranchesExceededException(inner) => {
Error::MaximumBranchesExceededException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::MaximumRepositoryTriggersExceededException(inner) => {
Error::MaximumRepositoryTriggersExceededException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::RepositoryTriggerBranchNameListRequiredException(inner) => {
Error::RepositoryTriggerBranchNameListRequiredException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::RepositoryTriggerDestinationArnRequiredException(inner) => {
Error::RepositoryTriggerDestinationArnRequiredException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::RepositoryTriggerEventsListRequiredException(inner) => {
Error::RepositoryTriggerEventsListRequiredException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::RepositoryTriggerNameRequiredException(inner) => {
Error::RepositoryTriggerNameRequiredException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::RepositoryTriggersListRequiredException(inner) => {
Error::RepositoryTriggersListRequiredException(inner)
}
crate::operation::test_repository_triggers::TestRepositoryTriggersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
match err {
crate::operation::untag_resource::UntagResourceError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::untag_resource::UntagResourceError::InvalidResourceArnException(inner) => Error::InvalidResourceArnException(inner),
crate::operation::untag_resource::UntagResourceError::InvalidSystemTagUsageException(inner) => {
Error::InvalidSystemTagUsageException(inner)
}
crate::operation::untag_resource::UntagResourceError::InvalidTagKeysListException(inner) => Error::InvalidTagKeysListException(inner),
crate::operation::untag_resource::UntagResourceError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::untag_resource::UntagResourceError::ResourceArnRequiredException(inner) => Error::ResourceArnRequiredException(inner),
crate::operation::untag_resource::UntagResourceError::TagKeysListRequiredException(inner) => Error::TagKeysListRequiredException(inner),
crate::operation::untag_resource::UntagResourceError::TagPolicyException(inner) => Error::TagPolicyException(inner),
crate::operation::untag_resource::UntagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_approval_rule_template_content::UpdateApprovalRuleTemplateContentError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_approval_rule_template_content::UpdateApprovalRuleTemplateContentError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::update_approval_rule_template_content::UpdateApprovalRuleTemplateContentError) -> Self {
match err {
crate::operation::update_approval_rule_template_content::UpdateApprovalRuleTemplateContentError::ApprovalRuleTemplateContentRequiredException(inner) => Error::ApprovalRuleTemplateContentRequiredException(inner),
crate::operation::update_approval_rule_template_content::UpdateApprovalRuleTemplateContentError::ApprovalRuleTemplateDoesNotExistException(inner) => Error::ApprovalRuleTemplateDoesNotExistException(inner),
crate::operation::update_approval_rule_template_content::UpdateApprovalRuleTemplateContentError::ApprovalRuleTemplateNameRequiredException(inner) => Error::ApprovalRuleTemplateNameRequiredException(inner),
crate::operation::update_approval_rule_template_content::UpdateApprovalRuleTemplateContentError::InvalidApprovalRuleTemplateContentException(inner) => Error::InvalidApprovalRuleTemplateContentException(inner),
crate::operation::update_approval_rule_template_content::UpdateApprovalRuleTemplateContentError::InvalidApprovalRuleTemplateNameException(inner) => Error::InvalidApprovalRuleTemplateNameException(inner),
crate::operation::update_approval_rule_template_content::UpdateApprovalRuleTemplateContentError::InvalidRuleContentSha256Exception(inner) => Error::InvalidRuleContentSha256Exception(inner),
crate::operation::update_approval_rule_template_content::UpdateApprovalRuleTemplateContentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_approval_rule_template_description::UpdateApprovalRuleTemplateDescriptionError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_approval_rule_template_description::UpdateApprovalRuleTemplateDescriptionError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::update_approval_rule_template_description::UpdateApprovalRuleTemplateDescriptionError) -> Self {
match err {
crate::operation::update_approval_rule_template_description::UpdateApprovalRuleTemplateDescriptionError::ApprovalRuleTemplateDoesNotExistException(inner) => Error::ApprovalRuleTemplateDoesNotExistException(inner),
crate::operation::update_approval_rule_template_description::UpdateApprovalRuleTemplateDescriptionError::ApprovalRuleTemplateNameRequiredException(inner) => Error::ApprovalRuleTemplateNameRequiredException(inner),
crate::operation::update_approval_rule_template_description::UpdateApprovalRuleTemplateDescriptionError::InvalidApprovalRuleTemplateDescriptionException(inner) => Error::InvalidApprovalRuleTemplateDescriptionException(inner),
crate::operation::update_approval_rule_template_description::UpdateApprovalRuleTemplateDescriptionError::InvalidApprovalRuleTemplateNameException(inner) => Error::InvalidApprovalRuleTemplateNameException(inner),
crate::operation::update_approval_rule_template_description::UpdateApprovalRuleTemplateDescriptionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_approval_rule_template_name::UpdateApprovalRuleTemplateNameError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_approval_rule_template_name::UpdateApprovalRuleTemplateNameError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::update_approval_rule_template_name::UpdateApprovalRuleTemplateNameError) -> Self {
match err {
crate::operation::update_approval_rule_template_name::UpdateApprovalRuleTemplateNameError::ApprovalRuleTemplateDoesNotExistException(inner) => Error::ApprovalRuleTemplateDoesNotExistException(inner),
crate::operation::update_approval_rule_template_name::UpdateApprovalRuleTemplateNameError::ApprovalRuleTemplateNameAlreadyExistsException(inner) => Error::ApprovalRuleTemplateNameAlreadyExistsException(inner),
crate::operation::update_approval_rule_template_name::UpdateApprovalRuleTemplateNameError::ApprovalRuleTemplateNameRequiredException(inner) => Error::ApprovalRuleTemplateNameRequiredException(inner),
crate::operation::update_approval_rule_template_name::UpdateApprovalRuleTemplateNameError::InvalidApprovalRuleTemplateNameException(inner) => Error::InvalidApprovalRuleTemplateNameException(inner),
crate::operation::update_approval_rule_template_name::UpdateApprovalRuleTemplateNameError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::update_comment::UpdateCommentError) -> Self {
match err {
crate::operation::update_comment::UpdateCommentError::CommentContentRequiredException(inner) => {
Error::CommentContentRequiredException(inner)
}
crate::operation::update_comment::UpdateCommentError::CommentContentSizeLimitExceededException(inner) => {
Error::CommentContentSizeLimitExceededException(inner)
}
crate::operation::update_comment::UpdateCommentError::CommentDeletedException(inner) => Error::CommentDeletedException(inner),
crate::operation::update_comment::UpdateCommentError::CommentDoesNotExistException(inner) => Error::CommentDoesNotExistException(inner),
crate::operation::update_comment::UpdateCommentError::CommentIdRequiredException(inner) => Error::CommentIdRequiredException(inner),
crate::operation::update_comment::UpdateCommentError::CommentNotCreatedByCallerException(inner) => {
Error::CommentNotCreatedByCallerException(inner)
}
crate::operation::update_comment::UpdateCommentError::InvalidCommentIdException(inner) => Error::InvalidCommentIdException(inner),
crate::operation::update_comment::UpdateCommentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl From<::aws_smithy_runtime_api::client::result::SdkError> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::update_default_branch::UpdateDefaultBranchError) -> Self {
match err {
crate::operation::update_default_branch::UpdateDefaultBranchError::BranchDoesNotExistException(inner) => {
Error::BranchDoesNotExistException(inner)
}
crate::operation::update_default_branch::UpdateDefaultBranchError::BranchNameRequiredException(inner) => {
Error::BranchNameRequiredException(inner)
}
crate::operation::update_default_branch::UpdateDefaultBranchError::EncryptionIntegrityChecksFailedException(inner) => {
Error::EncryptionIntegrityChecksFailedException(inner)
}
crate::operation::update_default_branch::UpdateDefaultBranchError::EncryptionKeyAccessDeniedException(inner) => {
Error::EncryptionKeyAccessDeniedException(inner)
}
crate::operation::update_default_branch::UpdateDefaultBranchError::EncryptionKeyDisabledException(inner) => {
Error::EncryptionKeyDisabledException(inner)
}
crate::operation::update_default_branch::UpdateDefaultBranchError::EncryptionKeyNotFoundException(inner) => {
Error::EncryptionKeyNotFoundException(inner)
}
crate::operation::update_default_branch::UpdateDefaultBranchError::EncryptionKeyUnavailableException(inner) => {
Error::EncryptionKeyUnavailableException(inner)
}
crate::operation::update_default_branch::UpdateDefaultBranchError::InvalidBranchNameException(inner) => {
Error::InvalidBranchNameException(inner)
}
crate::operation::update_default_branch::UpdateDefaultBranchError::InvalidRepositoryNameException(inner) => {
Error::InvalidRepositoryNameException(inner)
}
crate::operation::update_default_branch::UpdateDefaultBranchError::RepositoryDoesNotExistException(inner) => {
Error::RepositoryDoesNotExistException(inner)
}
crate::operation::update_default_branch::UpdateDefaultBranchError::RepositoryNameRequiredException(inner) => {
Error::RepositoryNameRequiredException(inner)
}
crate::operation::update_default_branch::UpdateDefaultBranchError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError) -> Self {
match err {
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError::ApprovalRuleContentRequiredException(inner) => Error::ApprovalRuleContentRequiredException(inner),
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError::ApprovalRuleDoesNotExistException(inner) => Error::ApprovalRuleDoesNotExistException(inner),
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError::ApprovalRuleNameRequiredException(inner) => Error::ApprovalRuleNameRequiredException(inner),
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError::CannotModifyApprovalRuleFromTemplateException(inner) => Error::CannotModifyApprovalRuleFromTemplateException(inner),
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError::EncryptionIntegrityChecksFailedException(inner) => Error::EncryptionIntegrityChecksFailedException(inner),
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError::EncryptionKeyAccessDeniedException(inner) => Error::EncryptionKeyAccessDeniedException(inner),
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError::InvalidApprovalRuleContentException(inner) => Error::InvalidApprovalRuleContentException(inner),
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError::InvalidApprovalRuleNameException(inner) => Error::InvalidApprovalRuleNameException(inner),
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError::InvalidPullRequestIdException(inner) => Error::InvalidPullRequestIdException(inner),
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError::InvalidRuleContentSha256Exception(inner) => Error::InvalidRuleContentSha256Exception(inner),
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError::PullRequestAlreadyClosedException(inner) => Error::PullRequestAlreadyClosedException(inner),
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError::PullRequestDoesNotExistException(inner) => Error::PullRequestDoesNotExistException(inner),
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError::PullRequestIdRequiredException(inner) => Error::PullRequestIdRequiredException(inner),
crate::operation::update_pull_request_approval_rule_content::UpdatePullRequestApprovalRuleContentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From for Error {
fn from(err: crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError) -> Self {
match err {
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError::ApprovalStateRequiredException(inner) => Error::ApprovalStateRequiredException(inner),
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError::EncryptionIntegrityChecksFailedException(inner) => Error::EncryptionIntegrityChecksFailedException(inner),
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError::EncryptionKeyAccessDeniedException(inner) => Error::EncryptionKeyAccessDeniedException(inner),
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError::EncryptionKeyDisabledException(inner) => Error::EncryptionKeyDisabledException(inner),
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError::EncryptionKeyNotFoundException(inner) => Error::EncryptionKeyNotFoundException(inner),
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError::EncryptionKeyUnavailableException(inner) => Error::EncryptionKeyUnavailableException(inner),
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError::InvalidApprovalStateException(inner) => Error::InvalidApprovalStateException(inner),
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError::InvalidPullRequestIdException(inner) => Error::InvalidPullRequestIdException(inner),
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError::InvalidRevisionIdException(inner) => Error::InvalidRevisionIdException(inner),
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError::MaximumNumberOfApprovalsExceededException(inner) => Error::MaximumNumberOfApprovalsExceededException(inner),
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError::PullRequestAlreadyClosedException(inner) => Error::PullRequestAlreadyClosedException(inner),
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError::PullRequestCannotBeApprovedByAuthorException(inner) => Error::PullRequestCannotBeApprovedByAuthorException(inner),
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError::PullRequestDoesNotExistException(inner) => Error::PullRequestDoesNotExistException(inner),
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError::PullRequestIdRequiredException(inner) => Error::PullRequestIdRequiredException(inner),
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError::RevisionIdRequiredException(inner) => Error::RevisionIdRequiredException(inner),
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError::RevisionNotCurrentException(inner) => Error::RevisionNotCurrentException(inner),
crate::operation::update_pull_request_approval_state::UpdatePullRequestApprovalStateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl