#[non_exhaustive]pub struct UpdatePullRequestApprovalStateError {
pub kind: UpdatePullRequestApprovalStateErrorKind,
/* private fields */
}
Expand description
Error type for the UpdatePullRequestApprovalState
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: UpdatePullRequestApprovalStateErrorKind
Kind of error that occurred.
Implementations
Creates a new UpdatePullRequestApprovalStateError
.
Creates the UpdatePullRequestApprovalStateError::Unhandled
variant from any error type.
Creates the UpdatePullRequestApprovalStateError::Unhandled
variant from a aws_smithy_types::Error
.
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
Returns the request ID if it’s available.
Returns true
if the error kind is UpdatePullRequestApprovalStateErrorKind::ApprovalStateRequiredException
.
Returns true
if the error kind is UpdatePullRequestApprovalStateErrorKind::EncryptionIntegrityChecksFailedException
.
Returns true
if the error kind is UpdatePullRequestApprovalStateErrorKind::EncryptionKeyAccessDeniedException
.
Returns true
if the error kind is UpdatePullRequestApprovalStateErrorKind::EncryptionKeyDisabledException
.
Returns true
if the error kind is UpdatePullRequestApprovalStateErrorKind::EncryptionKeyNotFoundException
.
Returns true
if the error kind is UpdatePullRequestApprovalStateErrorKind::EncryptionKeyUnavailableException
.
Returns true
if the error kind is UpdatePullRequestApprovalStateErrorKind::InvalidApprovalStateException
.
Returns true
if the error kind is UpdatePullRequestApprovalStateErrorKind::InvalidPullRequestIdException
.
Returns true
if the error kind is UpdatePullRequestApprovalStateErrorKind::InvalidRevisionIdException
.
Returns true
if the error kind is UpdatePullRequestApprovalStateErrorKind::MaximumNumberOfApprovalsExceededException
.
Returns true
if the error kind is UpdatePullRequestApprovalStateErrorKind::PullRequestAlreadyClosedException
.
Returns true
if the error kind is UpdatePullRequestApprovalStateErrorKind::PullRequestCannotBeApprovedByAuthorException
.
Returns true
if the error kind is UpdatePullRequestApprovalStateErrorKind::PullRequestDoesNotExistException
.
Returns true
if the error kind is UpdatePullRequestApprovalStateErrorKind::PullRequestIdRequiredException
.
Returns true
if the error kind is UpdatePullRequestApprovalStateErrorKind::RevisionIdRequiredException
.
Returns true
if the error kind is UpdatePullRequestApprovalStateErrorKind::RevisionNotCurrentException
.
Trait Implementations
Auto Trait Implementations
impl Send for UpdatePullRequestApprovalStateError
impl Sync for UpdatePullRequestApprovalStateError
impl Unpin for UpdatePullRequestApprovalStateError
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more