Enum aws_sdk_codecommit::operation::update_approval_rule_template_content::UpdateApprovalRuleTemplateContentError
source · #[non_exhaustive]pub enum UpdateApprovalRuleTemplateContentError {
ApprovalRuleTemplateContentRequiredException(ApprovalRuleTemplateContentRequiredException),
ApprovalRuleTemplateDoesNotExistException(ApprovalRuleTemplateDoesNotExistException),
ApprovalRuleTemplateNameRequiredException(ApprovalRuleTemplateNameRequiredException),
InvalidApprovalRuleTemplateContentException(InvalidApprovalRuleTemplateContentException),
InvalidApprovalRuleTemplateNameException(InvalidApprovalRuleTemplateNameException),
InvalidRuleContentSha256Exception(InvalidRuleContentSha256Exception),
Unhandled(Unhandled),
}Expand description
Error type for the UpdateApprovalRuleTemplateContentError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ApprovalRuleTemplateContentRequiredException(ApprovalRuleTemplateContentRequiredException)
The content for the approval rule template is empty. You must provide some content for an approval rule template. The content cannot be null.
ApprovalRuleTemplateDoesNotExistException(ApprovalRuleTemplateDoesNotExistException)
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.
ApprovalRuleTemplateNameRequiredException(ApprovalRuleTemplateNameRequiredException)
An approval rule template name is required, but was not specified.
InvalidApprovalRuleTemplateContentException(InvalidApprovalRuleTemplateContentException)
The content of the approval rule template is not valid.
InvalidApprovalRuleTemplateNameException(InvalidApprovalRuleTemplateNameException)
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.
InvalidRuleContentSha256Exception(InvalidRuleContentSha256Exception)
The SHA-256 hash signature for the rule content is not valid.
Unhandled(Unhandled)
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 for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl UpdateApprovalRuleTemplateContentError
impl UpdateApprovalRuleTemplateContentError
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 UpdateApprovalRuleTemplateContentError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the UpdateApprovalRuleTemplateContentError::Unhandled variant from an ErrorMetadata.
sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn is_approval_rule_template_content_required_exception(&self) -> bool
pub fn is_approval_rule_template_content_required_exception(&self) -> bool
Returns true if the error kind is UpdateApprovalRuleTemplateContentError::ApprovalRuleTemplateContentRequiredException.
sourcepub fn is_approval_rule_template_does_not_exist_exception(&self) -> bool
pub fn is_approval_rule_template_does_not_exist_exception(&self) -> bool
Returns true if the error kind is UpdateApprovalRuleTemplateContentError::ApprovalRuleTemplateDoesNotExistException.
sourcepub fn is_approval_rule_template_name_required_exception(&self) -> bool
pub fn is_approval_rule_template_name_required_exception(&self) -> bool
Returns true if the error kind is UpdateApprovalRuleTemplateContentError::ApprovalRuleTemplateNameRequiredException.
sourcepub fn is_invalid_approval_rule_template_content_exception(&self) -> bool
pub fn is_invalid_approval_rule_template_content_exception(&self) -> bool
Returns true if the error kind is UpdateApprovalRuleTemplateContentError::InvalidApprovalRuleTemplateContentException.
sourcepub fn is_invalid_approval_rule_template_name_exception(&self) -> bool
pub fn is_invalid_approval_rule_template_name_exception(&self) -> bool
Returns true if the error kind is UpdateApprovalRuleTemplateContentError::InvalidApprovalRuleTemplateNameException.
sourcepub fn is_invalid_rule_content_sha256_exception(&self) -> bool
pub fn is_invalid_rule_content_sha256_exception(&self) -> bool
Returns true if the error kind is UpdateApprovalRuleTemplateContentError::InvalidRuleContentSha256Exception.
Trait Implementations§
source§impl CreateUnhandledError for UpdateApprovalRuleTemplateContentError
impl CreateUnhandledError for UpdateApprovalRuleTemplateContentError
source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self
source and error metadata.source§impl Error for UpdateApprovalRuleTemplateContentError
impl Error for UpdateApprovalRuleTemplateContentError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<UpdateApprovalRuleTemplateContentError> for Error
impl From<UpdateApprovalRuleTemplateContentError> for Error
source§fn from(err: UpdateApprovalRuleTemplateContentError) -> Self
fn from(err: UpdateApprovalRuleTemplateContentError) -> Self
source§impl ProvideErrorMetadata for UpdateApprovalRuleTemplateContentError
impl ProvideErrorMetadata for UpdateApprovalRuleTemplateContentError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for UpdateApprovalRuleTemplateContentError
impl RequestId for UpdateApprovalRuleTemplateContentError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.