#[non_exhaustive]
pub enum SendBulkEmailError {
AccountSuspendedException(AccountSuspendedException),
BadRequestException(BadRequestException),
LimitExceededException(LimitExceededException),
MailFromDomainNotVerifiedException(MailFromDomainNotVerifiedException),
MessageRejected(MessageRejected),
NotFoundException(NotFoundException),
SendingPausedException(SendingPausedException),
TooManyRequestsException(TooManyRequestsException),
Unhandled(Unhandled),
}Expand description
Error type for the SendBulkEmailError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccountSuspendedException(AccountSuspendedException)
The message can't be sent because the account's ability to send email has been permanently restricted.
BadRequestException(BadRequestException)
The input you provided is invalid.
LimitExceededException(LimitExceededException)
There are too many instances of the specified resource type.
MailFromDomainNotVerifiedException(MailFromDomainNotVerifiedException)
The message can't be sent because the sending domain isn't verified.
MessageRejected(MessageRejected)
The message can't be sent because it contains invalid content.
NotFoundException(NotFoundException)
The resource you attempted to access doesn't exist.
SendingPausedException(SendingPausedException)
The message can't be sent because the account's ability to send email is currently paused.
TooManyRequestsException(TooManyRequestsException)
Too many requests have been made to the operation.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
source§impl SendBulkEmailError
impl SendBulkEmailError
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 SendBulkEmailError::Unhandled variant from any error type.
sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the SendBulkEmailError::Unhandled variant from a aws_smithy_types::error::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_account_suspended_exception(&self) -> bool
pub fn is_account_suspended_exception(&self) -> bool
Returns true if the error kind is SendBulkEmailError::AccountSuspendedException.
sourcepub fn is_bad_request_exception(&self) -> bool
pub fn is_bad_request_exception(&self) -> bool
Returns true if the error kind is SendBulkEmailError::BadRequestException.
sourcepub fn is_limit_exceeded_exception(&self) -> bool
pub fn is_limit_exceeded_exception(&self) -> bool
Returns true if the error kind is SendBulkEmailError::LimitExceededException.
sourcepub fn is_mail_from_domain_not_verified_exception(&self) -> bool
pub fn is_mail_from_domain_not_verified_exception(&self) -> bool
Returns true if the error kind is SendBulkEmailError::MailFromDomainNotVerifiedException.
sourcepub fn is_message_rejected(&self) -> bool
pub fn is_message_rejected(&self) -> bool
Returns true if the error kind is SendBulkEmailError::MessageRejected.
sourcepub fn is_not_found_exception(&self) -> bool
pub fn is_not_found_exception(&self) -> bool
Returns true if the error kind is SendBulkEmailError::NotFoundException.
sourcepub fn is_sending_paused_exception(&self) -> bool
pub fn is_sending_paused_exception(&self) -> bool
Returns true if the error kind is SendBulkEmailError::SendingPausedException.
sourcepub fn is_too_many_requests_exception(&self) -> bool
pub fn is_too_many_requests_exception(&self) -> bool
Returns true if the error kind is SendBulkEmailError::TooManyRequestsException.
Trait Implementations§
source§impl CreateUnhandledError for SendBulkEmailError
impl CreateUnhandledError for SendBulkEmailError
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 SendBulkEmailError
impl Debug for SendBulkEmailError
source§impl Display for SendBulkEmailError
impl Display for SendBulkEmailError
source§impl Error for SendBulkEmailError
impl Error for SendBulkEmailError
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<SendBulkEmailError> for Error
impl From<SendBulkEmailError> for Error
source§fn from(err: SendBulkEmailError) -> Self
fn from(err: SendBulkEmailError) -> Self
source§impl ProvideErrorMetadata for SendBulkEmailError
impl ProvideErrorMetadata for SendBulkEmailError
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
source§impl RequestId for SendBulkEmailError
impl RequestId for SendBulkEmailError
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.