Enum aws_sdk_workmailmessageflow::operation::put_raw_message_content::PutRawMessageContentError
source · #[non_exhaustive]pub enum PutRawMessageContentError {
InvalidContentLocation(InvalidContentLocation),
MessageFrozen(MessageFrozen),
MessageRejected(MessageRejected),
ResourceNotFoundException(ResourceNotFoundException),
Unhandled(Unhandled),
}Expand description
Error type for the PutRawMessageContentError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidContentLocation(InvalidContentLocation)
WorkMail could not access the updated email content. Possible reasons:
-
You made the request in a region other than your S3 bucket region.
-
The S3 bucket owner is not the same as the calling AWS account.
-
You have an incomplete or missing S3 bucket policy. For more information about policies, see Updating message content with AWS Lambda in the WorkMail Administrator Guide.
MessageFrozen(MessageFrozen)
The requested email is not eligible for update. This is usually the case for a redirected email.
MessageRejected(MessageRejected)
The requested email could not be updated due to an error in the MIME content. Check the error message for more information about what caused the error.
ResourceNotFoundException(ResourceNotFoundException)
The requested email message is not found.
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 PutRawMessageContentError
impl PutRawMessageContentError
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 PutRawMessageContentError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the PutRawMessageContentError::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_content_location(&self) -> bool
pub fn is_invalid_content_location(&self) -> bool
Returns true if the error kind is PutRawMessageContentError::InvalidContentLocation.
sourcepub fn is_message_frozen(&self) -> bool
pub fn is_message_frozen(&self) -> bool
Returns true if the error kind is PutRawMessageContentError::MessageFrozen.
sourcepub fn is_message_rejected(&self) -> bool
pub fn is_message_rejected(&self) -> bool
Returns true if the error kind is PutRawMessageContentError::MessageRejected.
sourcepub fn is_resource_not_found_exception(&self) -> bool
pub fn is_resource_not_found_exception(&self) -> bool
Returns true if the error kind is PutRawMessageContentError::ResourceNotFoundException.
Trait Implementations§
source§impl CreateUnhandledError for PutRawMessageContentError
impl CreateUnhandledError for PutRawMessageContentError
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 PutRawMessageContentError
impl Debug for PutRawMessageContentError
source§impl Display for PutRawMessageContentError
impl Display for PutRawMessageContentError
source§impl Error for PutRawMessageContentError
impl Error for PutRawMessageContentError
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<PutRawMessageContentError> for Error
impl From<PutRawMessageContentError> for Error
source§fn from(err: PutRawMessageContentError) -> Self
fn from(err: PutRawMessageContentError) -> Self
source§impl ProvideErrorMetadata for PutRawMessageContentError
impl ProvideErrorMetadata for PutRawMessageContentError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for PutRawMessageContentError
impl RequestId for PutRawMessageContentError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.