#[non_exhaustive]pub struct MergePullRequestByFastForwardError {
pub kind: MergePullRequestByFastForwardErrorKind,
/* private fields */
}
Expand description
Error type for the MergePullRequestByFastForward
operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.kind: MergePullRequestByFastForwardErrorKind
Kind of error that occurred.
Implementations§
source§impl MergePullRequestByFastForwardError
impl MergePullRequestByFastForwardError
sourcepub fn new(kind: MergePullRequestByFastForwardErrorKind, meta: Error) -> Self
pub fn new(kind: MergePullRequestByFastForwardErrorKind, meta: Error) -> Self
Creates a new MergePullRequestByFastForwardError
.
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the MergePullRequestByFastForwardError::Unhandled
variant from any error type.
sourcepub fn generic(err: Error) -> Self
pub fn generic(err: Error) -> Self
Creates the MergePullRequestByFastForwardError::Unhandled
variant from a aws_smithy_types::Error
.
sourcepub fn meta(&self) -> &Error
pub fn meta(&self) -> &Error
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn request_id(&self) -> Option<&str>
pub fn request_id(&self) -> Option<&str>
Returns the request ID if it’s available.
sourcepub fn is_concurrent_reference_update_exception(&self) -> bool
pub fn is_concurrent_reference_update_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::ConcurrentReferenceUpdateException
.
sourcepub fn is_encryption_integrity_checks_failed_exception(&self) -> bool
pub fn is_encryption_integrity_checks_failed_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::EncryptionIntegrityChecksFailedException
.
sourcepub fn is_encryption_key_access_denied_exception(&self) -> bool
pub fn is_encryption_key_access_denied_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::EncryptionKeyAccessDeniedException
.
sourcepub fn is_encryption_key_disabled_exception(&self) -> bool
pub fn is_encryption_key_disabled_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::EncryptionKeyDisabledException
.
sourcepub fn is_encryption_key_not_found_exception(&self) -> bool
pub fn is_encryption_key_not_found_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::EncryptionKeyNotFoundException
.
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::EncryptionKeyUnavailableException
.
sourcepub fn is_invalid_commit_id_exception(&self) -> bool
pub fn is_invalid_commit_id_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::InvalidCommitIdException
.
sourcepub fn is_invalid_pull_request_id_exception(&self) -> bool
pub fn is_invalid_pull_request_id_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::InvalidPullRequestIdException
.
sourcepub fn is_invalid_repository_name_exception(&self) -> bool
pub fn is_invalid_repository_name_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::InvalidRepositoryNameException
.
sourcepub fn is_manual_merge_required_exception(&self) -> bool
pub fn is_manual_merge_required_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::ManualMergeRequiredException
.
sourcepub fn is_pull_request_already_closed_exception(&self) -> bool
pub fn is_pull_request_already_closed_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::PullRequestAlreadyClosedException
.
sourcepub fn is_pull_request_approval_rules_not_satisfied_exception(&self) -> bool
pub fn is_pull_request_approval_rules_not_satisfied_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::PullRequestApprovalRulesNotSatisfiedException
.
sourcepub fn is_pull_request_does_not_exist_exception(&self) -> bool
pub fn is_pull_request_does_not_exist_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::PullRequestDoesNotExistException
.
sourcepub fn is_pull_request_id_required_exception(&self) -> bool
pub fn is_pull_request_id_required_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::PullRequestIdRequiredException
.
sourcepub fn is_reference_does_not_exist_exception(&self) -> bool
pub fn is_reference_does_not_exist_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::ReferenceDoesNotExistException
.
sourcepub fn is_repository_does_not_exist_exception(&self) -> bool
pub fn is_repository_does_not_exist_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::RepositoryDoesNotExistException
.
sourcepub fn is_repository_name_required_exception(&self) -> bool
pub fn is_repository_name_required_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::RepositoryNameRequiredException
.
sourcepub fn is_repository_not_associated_with_pull_request_exception(&self) -> bool
pub fn is_repository_not_associated_with_pull_request_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::RepositoryNotAssociatedWithPullRequestException
.
sourcepub fn is_tip_of_source_reference_is_different_exception(&self) -> bool
pub fn is_tip_of_source_reference_is_different_exception(&self) -> bool
Returns true
if the error kind is MergePullRequestByFastForwardErrorKind::TipOfSourceReferenceIsDifferentException
.