#[non_exhaustive]pub enum UpdateReceiptRuleError {
InvalidLambdaFunctionException(InvalidLambdaFunctionException),
InvalidS3ConfigurationException(InvalidS3ConfigurationException),
InvalidSnsTopicException(InvalidSnsTopicException),
LimitExceededException(LimitExceededException),
RuleDoesNotExistException(RuleDoesNotExistException),
RuleSetDoesNotExistException(RuleSetDoesNotExistException),
Unhandled(Unhandled),
}Expand description
Error type for the UpdateReceiptRuleError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidLambdaFunctionException(InvalidLambdaFunctionException)
Indicates that the provided Amazon Web Services Lambda function is invalid, or that Amazon SES could not execute the provided function, possibly due to permissions issues. For information about giving permissions, see the Amazon SES Developer Guide.
InvalidS3ConfigurationException(InvalidS3ConfigurationException)
Indicates that the provided Amazon S3 bucket or Amazon Web Services KMS encryption key is invalid, or that Amazon SES could not publish to the bucket, possibly due to permissions issues. For information about giving permissions, see the Amazon SES Developer Guide.
InvalidSnsTopicException(InvalidSnsTopicException)
Indicates that the provided Amazon SNS topic is invalid, or that Amazon SES could not publish to the topic, possibly due to permissions issues. For information about giving permissions, see the Amazon SES Developer Guide.
LimitExceededException(LimitExceededException)
Indicates that a resource could not be created because of service limits. For a list of Amazon SES limits, see the Amazon SES Developer Guide.
RuleDoesNotExistException(RuleDoesNotExistException)
Indicates that the provided receipt rule does not exist.
RuleSetDoesNotExistException(RuleSetDoesNotExistException)
Indicates that the provided receipt rule set does not exist.
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 UpdateReceiptRuleError
impl UpdateReceiptRuleError
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 UpdateReceiptRuleError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the UpdateReceiptRuleError::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_invalid_lambda_function_exception(&self) -> bool
pub fn is_invalid_lambda_function_exception(&self) -> bool
Returns true if the error kind is UpdateReceiptRuleError::InvalidLambdaFunctionException.
sourcepub fn is_invalid_s3_configuration_exception(&self) -> bool
pub fn is_invalid_s3_configuration_exception(&self) -> bool
Returns true if the error kind is UpdateReceiptRuleError::InvalidS3ConfigurationException.
sourcepub fn is_invalid_sns_topic_exception(&self) -> bool
pub fn is_invalid_sns_topic_exception(&self) -> bool
Returns true if the error kind is UpdateReceiptRuleError::InvalidSnsTopicException.
sourcepub fn is_limit_exceeded_exception(&self) -> bool
pub fn is_limit_exceeded_exception(&self) -> bool
Returns true if the error kind is UpdateReceiptRuleError::LimitExceededException.
sourcepub fn is_rule_does_not_exist_exception(&self) -> bool
pub fn is_rule_does_not_exist_exception(&self) -> bool
Returns true if the error kind is UpdateReceiptRuleError::RuleDoesNotExistException.
sourcepub fn is_rule_set_does_not_exist_exception(&self) -> bool
pub fn is_rule_set_does_not_exist_exception(&self) -> bool
Returns true if the error kind is UpdateReceiptRuleError::RuleSetDoesNotExistException.
Trait Implementations§
source§impl CreateUnhandledError for UpdateReceiptRuleError
impl CreateUnhandledError for UpdateReceiptRuleError
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 Debug for UpdateReceiptRuleError
impl Debug for UpdateReceiptRuleError
source§impl Display for UpdateReceiptRuleError
impl Display for UpdateReceiptRuleError
source§impl Error for UpdateReceiptRuleError
impl Error for UpdateReceiptRuleError
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<UpdateReceiptRuleError> for Error
impl From<UpdateReceiptRuleError> for Error
source§fn from(err: UpdateReceiptRuleError) -> Self
fn from(err: UpdateReceiptRuleError) -> Self
source§impl ProvideErrorMetadata for UpdateReceiptRuleError
impl ProvideErrorMetadata for UpdateReceiptRuleError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for UpdateReceiptRuleError
impl RequestId for UpdateReceiptRuleError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.