#[non_exhaustive]pub enum Error {
InvalidContentLocation(InvalidContentLocation),
MessageFrozen(MessageFrozen),
MessageRejected(MessageRejected),
ResourceNotFoundException(ResourceNotFoundException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
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).
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
source§impl From<GetRawMessageContentError> for Error
impl From<GetRawMessageContentError> for Error
source§fn from(err: GetRawMessageContentError) -> Self
fn from(err: GetRawMessageContentError) -> Self
source§impl From<PutRawMessageContentError> for Error
impl From<PutRawMessageContentError> for Error
source§fn from(err: PutRawMessageContentError) -> Self
fn from(err: PutRawMessageContentError) -> Self
source§impl<R> From<SdkError<GetRawMessageContentError, R>> for Error
impl<R> From<SdkError<GetRawMessageContentError, R>> for Error
source§fn from(err: SdkError<GetRawMessageContentError, R>) -> Self
fn from(err: SdkError<GetRawMessageContentError, R>) -> Self
source§impl<R> From<SdkError<PutRawMessageContentError, R>> for Error
impl<R> From<SdkError<PutRawMessageContentError, R>> for Error
source§fn from(err: SdkError<PutRawMessageContentError, R>) -> Self
fn from(err: SdkError<PutRawMessageContentError, R>) -> Self
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more