#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
AccountSendingPausedException(crate::types::error::AccountSendingPausedException),
AlreadyExistsException(crate::types::error::AlreadyExistsException),
CannotDeleteException(crate::types::error::CannotDeleteException),
ConfigurationSetAlreadyExistsException(crate::types::error::ConfigurationSetAlreadyExistsException),
ConfigurationSetDoesNotExistException(crate::types::error::ConfigurationSetDoesNotExistException),
ConfigurationSetSendingPausedException(crate::types::error::ConfigurationSetSendingPausedException),
CustomVerificationEmailInvalidContentException(crate::types::error::CustomVerificationEmailInvalidContentException),
CustomVerificationEmailTemplateAlreadyExistsException(crate::types::error::CustomVerificationEmailTemplateAlreadyExistsException),
CustomVerificationEmailTemplateDoesNotExistException(crate::types::error::CustomVerificationEmailTemplateDoesNotExistException),
EventDestinationAlreadyExistsException(crate::types::error::EventDestinationAlreadyExistsException),
EventDestinationDoesNotExistException(crate::types::error::EventDestinationDoesNotExistException),
FromEmailAddressNotVerifiedException(crate::types::error::FromEmailAddressNotVerifiedException),
InvalidCloudWatchDestinationException(crate::types::error::InvalidCloudWatchDestinationException),
InvalidConfigurationSetException(crate::types::error::InvalidConfigurationSetException),
InvalidDeliveryOptionsException(crate::types::error::InvalidDeliveryOptionsException),
InvalidFirehoseDestinationException(crate::types::error::InvalidFirehoseDestinationException),
InvalidLambdaFunctionException(crate::types::error::InvalidLambdaFunctionException),
InvalidPolicyException(crate::types::error::InvalidPolicyException),
InvalidRenderingParameterException(crate::types::error::InvalidRenderingParameterException),
InvalidS3ConfigurationException(crate::types::error::InvalidS3ConfigurationException),
InvalidSnsDestinationException(crate::types::error::InvalidSnsDestinationException),
InvalidSnsTopicException(crate::types::error::InvalidSnsTopicException),
InvalidTemplateException(crate::types::error::InvalidTemplateException),
InvalidTrackingOptionsException(crate::types::error::InvalidTrackingOptionsException),
LimitExceededException(crate::types::error::LimitExceededException),
MailFromDomainNotVerifiedException(crate::types::error::MailFromDomainNotVerifiedException),
MessageRejected(crate::types::error::MessageRejected),
MissingRenderingAttributeException(crate::types::error::MissingRenderingAttributeException),
ProductionAccessNotGrantedException(crate::types::error::ProductionAccessNotGrantedException),
RuleDoesNotExistException(crate::types::error::RuleDoesNotExistException),
RuleSetDoesNotExistException(crate::types::error::RuleSetDoesNotExistException),
TemplateDoesNotExistException(crate::types::error::TemplateDoesNotExistException),
TrackingOptionsAlreadyExistsException(crate::types::error::TrackingOptionsAlreadyExistsException),
TrackingOptionsDoesNotExistException(crate::types::error::TrackingOptionsDoesNotExistException),
#[deprecated(note = "Matching `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`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
Unhandled(crate::error::sealed_unhandled::Unhandled),
}
impl ::std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::AccountSendingPausedException(inner) => inner.fmt(f),
Error::AlreadyExistsException(inner) => inner.fmt(f),
Error::CannotDeleteException(inner) => inner.fmt(f),
Error::ConfigurationSetAlreadyExistsException(inner) => inner.fmt(f),
Error::ConfigurationSetDoesNotExistException(inner) => inner.fmt(f),
Error::ConfigurationSetSendingPausedException(inner) => inner.fmt(f),
Error::CustomVerificationEmailInvalidContentException(inner) => inner.fmt(f),
Error::CustomVerificationEmailTemplateAlreadyExistsException(inner) => inner.fmt(f),
Error::CustomVerificationEmailTemplateDoesNotExistException(inner) => inner.fmt(f),
Error::EventDestinationAlreadyExistsException(inner) => inner.fmt(f),
Error::EventDestinationDoesNotExistException(inner) => inner.fmt(f),
Error::FromEmailAddressNotVerifiedException(inner) => inner.fmt(f),
Error::InvalidCloudWatchDestinationException(inner) => inner.fmt(f),
Error::InvalidConfigurationSetException(inner) => inner.fmt(f),
Error::InvalidDeliveryOptionsException(inner) => inner.fmt(f),
Error::InvalidFirehoseDestinationException(inner) => inner.fmt(f),
Error::InvalidLambdaFunctionException(inner) => inner.fmt(f),
Error::InvalidPolicyException(inner) => inner.fmt(f),
Error::InvalidRenderingParameterException(inner) => inner.fmt(f),
Error::InvalidS3ConfigurationException(inner) => inner.fmt(f),
Error::InvalidSnsDestinationException(inner) => inner.fmt(f),
Error::InvalidSnsTopicException(inner) => inner.fmt(f),
Error::InvalidTemplateException(inner) => inner.fmt(f),
Error::InvalidTrackingOptionsException(inner) => inner.fmt(f),
Error::LimitExceededException(inner) => inner.fmt(f),
Error::MailFromDomainNotVerifiedException(inner) => inner.fmt(f),
Error::MessageRejected(inner) => inner.fmt(f),
Error::MissingRenderingAttributeException(inner) => inner.fmt(f),
Error::ProductionAccessNotGrantedException(inner) => inner.fmt(f),
Error::RuleDoesNotExistException(inner) => inner.fmt(f),
Error::RuleSetDoesNotExistException(inner) => inner.fmt(f),
Error::TemplateDoesNotExistException(inner) => inner.fmt(f),
Error::TrackingOptionsAlreadyExistsException(inner) => inner.fmt(f),
Error::TrackingOptionsDoesNotExistException(inner) => inner.fmt(f),
Error::Unhandled(_) => {
if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
write!(f, "unhandled error ({code})")
} else {
f.write_str("unhandled error")
}
}
}
}
}
impl From<::aws_smithy_types::error::operation::BuildError> for Error {
fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
source: value.into(),
meta: ::std::default::Default::default(),
})
}
}
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
match self {
Self::AccountSendingPausedException(inner) => inner.meta(),
Self::AlreadyExistsException(inner) => inner.meta(),
Self::CannotDeleteException(inner) => inner.meta(),
Self::ConfigurationSetAlreadyExistsException(inner) => inner.meta(),
Self::ConfigurationSetDoesNotExistException(inner) => inner.meta(),
Self::ConfigurationSetSendingPausedException(inner) => inner.meta(),
Self::CustomVerificationEmailInvalidContentException(inner) => inner.meta(),
Self::CustomVerificationEmailTemplateAlreadyExistsException(inner) => inner.meta(),
Self::CustomVerificationEmailTemplateDoesNotExistException(inner) => inner.meta(),
Self::EventDestinationAlreadyExistsException(inner) => inner.meta(),
Self::EventDestinationDoesNotExistException(inner) => inner.meta(),
Self::FromEmailAddressNotVerifiedException(inner) => inner.meta(),
Self::InvalidCloudWatchDestinationException(inner) => inner.meta(),
Self::InvalidConfigurationSetException(inner) => inner.meta(),
Self::InvalidDeliveryOptionsException(inner) => inner.meta(),
Self::InvalidFirehoseDestinationException(inner) => inner.meta(),
Self::InvalidLambdaFunctionException(inner) => inner.meta(),
Self::InvalidPolicyException(inner) => inner.meta(),
Self::InvalidRenderingParameterException(inner) => inner.meta(),
Self::InvalidS3ConfigurationException(inner) => inner.meta(),
Self::InvalidSnsDestinationException(inner) => inner.meta(),
Self::InvalidSnsTopicException(inner) => inner.meta(),
Self::InvalidTemplateException(inner) => inner.meta(),
Self::InvalidTrackingOptionsException(inner) => inner.meta(),
Self::LimitExceededException(inner) => inner.meta(),
Self::MailFromDomainNotVerifiedException(inner) => inner.meta(),
Self::MessageRejected(inner) => inner.meta(),
Self::MissingRenderingAttributeException(inner) => inner.meta(),
Self::ProductionAccessNotGrantedException(inner) => inner.meta(),
Self::RuleDoesNotExistException(inner) => inner.meta(),
Self::RuleSetDoesNotExistException(inner) => inner.meta(),
Self::TemplateDoesNotExistException(inner) => inner.meta(),
Self::TrackingOptionsAlreadyExistsException(inner) => inner.meta(),
Self::TrackingOptionsDoesNotExistException(inner) => inner.meta(),
Self::Unhandled(inner) => &inner.meta,
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::clone_receipt_rule_set::CloneReceiptRuleSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::clone_receipt_rule_set::CloneReceiptRuleSetError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::clone_receipt_rule_set::CloneReceiptRuleSetError> for Error {
fn from(err: crate::operation::clone_receipt_rule_set::CloneReceiptRuleSetError) -> Self {
match err {
crate::operation::clone_receipt_rule_set::CloneReceiptRuleSetError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
crate::operation::clone_receipt_rule_set::CloneReceiptRuleSetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::clone_receipt_rule_set::CloneReceiptRuleSetError::RuleSetDoesNotExistException(inner) => {
Error::RuleSetDoesNotExistException(inner)
}
crate::operation::clone_receipt_rule_set::CloneReceiptRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_configuration_set::CreateConfigurationSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_configuration_set::CreateConfigurationSetError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_configuration_set::CreateConfigurationSetError> for Error {
fn from(err: crate::operation::create_configuration_set::CreateConfigurationSetError) -> Self {
match err {
crate::operation::create_configuration_set::CreateConfigurationSetError::ConfigurationSetAlreadyExistsException(inner) => {
Error::ConfigurationSetAlreadyExistsException(inner)
}
crate::operation::create_configuration_set::CreateConfigurationSetError::InvalidConfigurationSetException(inner) => {
Error::InvalidConfigurationSetException(inner)
}
crate::operation::create_configuration_set::CreateConfigurationSetError::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::operation::create_configuration_set::CreateConfigurationSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError> for Error {
fn from(err: crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError) -> Self {
match err {
crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::EventDestinationAlreadyExistsException(inner) => Error::EventDestinationAlreadyExistsException(inner),
crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::InvalidCloudWatchDestinationException(inner) => Error::InvalidCloudWatchDestinationException(inner),
crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::InvalidFirehoseDestinationException(inner) => Error::InvalidFirehoseDestinationException(inner),
crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::InvalidSnsDestinationException(inner) => Error::InvalidSnsDestinationException(inner),
crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::create_configuration_set_event_destination::CreateConfigurationSetEventDestinationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_configuration_set_tracking_options::CreateConfigurationSetTrackingOptionsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_configuration_set_tracking_options::CreateConfigurationSetTrackingOptionsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_configuration_set_tracking_options::CreateConfigurationSetTrackingOptionsError> for Error {
fn from(err: crate::operation::create_configuration_set_tracking_options::CreateConfigurationSetTrackingOptionsError) -> Self {
match err {
crate::operation::create_configuration_set_tracking_options::CreateConfigurationSetTrackingOptionsError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
crate::operation::create_configuration_set_tracking_options::CreateConfigurationSetTrackingOptionsError::InvalidTrackingOptionsException(inner) => Error::InvalidTrackingOptionsException(inner),
crate::operation::create_configuration_set_tracking_options::CreateConfigurationSetTrackingOptionsError::TrackingOptionsAlreadyExistsException(inner) => Error::TrackingOptionsAlreadyExistsException(inner),
crate::operation::create_configuration_set_tracking_options::CreateConfigurationSetTrackingOptionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError> for Error {
fn from(err: crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError) -> Self {
match err {
crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError::CustomVerificationEmailInvalidContentException(inner) => Error::CustomVerificationEmailInvalidContentException(inner),
crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError::CustomVerificationEmailTemplateAlreadyExistsException(inner) => Error::CustomVerificationEmailTemplateAlreadyExistsException(inner),
crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError::FromEmailAddressNotVerifiedException(inner) => Error::FromEmailAddressNotVerifiedException(inner),
crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::create_custom_verification_email_template::CreateCustomVerificationEmailTemplateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_receipt_filter::CreateReceiptFilterError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_receipt_filter::CreateReceiptFilterError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_receipt_filter::CreateReceiptFilterError> for Error {
fn from(err: crate::operation::create_receipt_filter::CreateReceiptFilterError) -> Self {
match err {
crate::operation::create_receipt_filter::CreateReceiptFilterError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
crate::operation::create_receipt_filter::CreateReceiptFilterError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::create_receipt_filter::CreateReceiptFilterError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_receipt_rule::CreateReceiptRuleError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_receipt_rule::CreateReceiptRuleError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_receipt_rule::CreateReceiptRuleError> for Error {
fn from(err: crate::operation::create_receipt_rule::CreateReceiptRuleError) -> Self {
match err {
crate::operation::create_receipt_rule::CreateReceiptRuleError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
crate::operation::create_receipt_rule::CreateReceiptRuleError::InvalidLambdaFunctionException(inner) => {
Error::InvalidLambdaFunctionException(inner)
}
crate::operation::create_receipt_rule::CreateReceiptRuleError::InvalidS3ConfigurationException(inner) => {
Error::InvalidS3ConfigurationException(inner)
}
crate::operation::create_receipt_rule::CreateReceiptRuleError::InvalidSnsTopicException(inner) => Error::InvalidSnsTopicException(inner),
crate::operation::create_receipt_rule::CreateReceiptRuleError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::create_receipt_rule::CreateReceiptRuleError::RuleDoesNotExistException(inner) => {
Error::RuleDoesNotExistException(inner)
}
crate::operation::create_receipt_rule::CreateReceiptRuleError::RuleSetDoesNotExistException(inner) => {
Error::RuleSetDoesNotExistException(inner)
}
crate::operation::create_receipt_rule::CreateReceiptRuleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_receipt_rule_set::CreateReceiptRuleSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_receipt_rule_set::CreateReceiptRuleSetError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_receipt_rule_set::CreateReceiptRuleSetError> for Error {
fn from(err: crate::operation::create_receipt_rule_set::CreateReceiptRuleSetError) -> Self {
match err {
crate::operation::create_receipt_rule_set::CreateReceiptRuleSetError::AlreadyExistsException(inner) => {
Error::AlreadyExistsException(inner)
}
crate::operation::create_receipt_rule_set::CreateReceiptRuleSetError::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::operation::create_receipt_rule_set::CreateReceiptRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template::CreateTemplateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template::CreateTemplateError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_template::CreateTemplateError> for Error {
fn from(err: crate::operation::create_template::CreateTemplateError) -> Self {
match err {
crate::operation::create_template::CreateTemplateError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
crate::operation::create_template::CreateTemplateError::InvalidTemplateException(inner) => Error::InvalidTemplateException(inner),
crate::operation::create_template::CreateTemplateError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::create_template::CreateTemplateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_set::DeleteConfigurationSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_set::DeleteConfigurationSetError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_configuration_set::DeleteConfigurationSetError> for Error {
fn from(err: crate::operation::delete_configuration_set::DeleteConfigurationSetError) -> Self {
match err {
crate::operation::delete_configuration_set::DeleteConfigurationSetError::ConfigurationSetDoesNotExistException(inner) => {
Error::ConfigurationSetDoesNotExistException(inner)
}
crate::operation::delete_configuration_set::DeleteConfigurationSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError> for Error {
fn from(err: crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError) -> Self {
match err {
crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError::EventDestinationDoesNotExistException(inner) => Error::EventDestinationDoesNotExistException(inner),
crate::operation::delete_configuration_set_event_destination::DeleteConfigurationSetEventDestinationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError> for Error {
fn from(err: crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError) -> Self {
match err {
crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError::TrackingOptionsDoesNotExistException(inner) => Error::TrackingOptionsDoesNotExistException(inner),
crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError> for Error {
fn from(err: crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError) -> Self {
match err {
crate::operation::delete_custom_verification_email_template::DeleteCustomVerificationEmailTemplateError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_identity::DeleteIdentityError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_identity::DeleteIdentityError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_identity::DeleteIdentityError> for Error {
fn from(err: crate::operation::delete_identity::DeleteIdentityError) -> Self {
match err {
crate::operation::delete_identity::DeleteIdentityError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_identity_policy::DeleteIdentityPolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_identity_policy::DeleteIdentityPolicyError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_identity_policy::DeleteIdentityPolicyError> for Error {
fn from(err: crate::operation::delete_identity_policy::DeleteIdentityPolicyError) -> Self {
match err {
crate::operation::delete_identity_policy::DeleteIdentityPolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_receipt_filter::DeleteReceiptFilterError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_receipt_filter::DeleteReceiptFilterError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_receipt_filter::DeleteReceiptFilterError> for Error {
fn from(err: crate::operation::delete_receipt_filter::DeleteReceiptFilterError) -> Self {
match err {
crate::operation::delete_receipt_filter::DeleteReceiptFilterError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_receipt_rule::DeleteReceiptRuleError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_receipt_rule::DeleteReceiptRuleError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_receipt_rule::DeleteReceiptRuleError> for Error {
fn from(err: crate::operation::delete_receipt_rule::DeleteReceiptRuleError) -> Self {
match err {
crate::operation::delete_receipt_rule::DeleteReceiptRuleError::RuleSetDoesNotExistException(inner) => {
Error::RuleSetDoesNotExistException(inner)
}
crate::operation::delete_receipt_rule::DeleteReceiptRuleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_receipt_rule_set::DeleteReceiptRuleSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_receipt_rule_set::DeleteReceiptRuleSetError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_receipt_rule_set::DeleteReceiptRuleSetError> for Error {
fn from(err: crate::operation::delete_receipt_rule_set::DeleteReceiptRuleSetError) -> Self {
match err {
crate::operation::delete_receipt_rule_set::DeleteReceiptRuleSetError::CannotDeleteException(inner) => Error::CannotDeleteException(inner),
crate::operation::delete_receipt_rule_set::DeleteReceiptRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template::DeleteTemplateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template::DeleteTemplateError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_template::DeleteTemplateError> for Error {
fn from(err: crate::operation::delete_template::DeleteTemplateError) -> Self {
match err {
crate::operation::delete_template::DeleteTemplateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressError> for Error {
fn from(err: crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressError) -> Self {
match err {
crate::operation::delete_verified_email_address::DeleteVerifiedEmailAddressError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_active_receipt_rule_set::DescribeActiveReceiptRuleSetError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_active_receipt_rule_set::DescribeActiveReceiptRuleSetError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_active_receipt_rule_set::DescribeActiveReceiptRuleSetError> for Error {
fn from(err: crate::operation::describe_active_receipt_rule_set::DescribeActiveReceiptRuleSetError) -> Self {
match err {
crate::operation::describe_active_receipt_rule_set::DescribeActiveReceiptRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_configuration_set::DescribeConfigurationSetError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_configuration_set::DescribeConfigurationSetError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_configuration_set::DescribeConfigurationSetError> for Error {
fn from(err: crate::operation::describe_configuration_set::DescribeConfigurationSetError) -> Self {
match err {
crate::operation::describe_configuration_set::DescribeConfigurationSetError::ConfigurationSetDoesNotExistException(inner) => {
Error::ConfigurationSetDoesNotExistException(inner)
}
crate::operation::describe_configuration_set::DescribeConfigurationSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_receipt_rule::DescribeReceiptRuleError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_receipt_rule::DescribeReceiptRuleError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_receipt_rule::DescribeReceiptRuleError> for Error {
fn from(err: crate::operation::describe_receipt_rule::DescribeReceiptRuleError) -> Self {
match err {
crate::operation::describe_receipt_rule::DescribeReceiptRuleError::RuleDoesNotExistException(inner) => {
Error::RuleDoesNotExistException(inner)
}
crate::operation::describe_receipt_rule::DescribeReceiptRuleError::RuleSetDoesNotExistException(inner) => {
Error::RuleSetDoesNotExistException(inner)
}
crate::operation::describe_receipt_rule::DescribeReceiptRuleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_receipt_rule_set::DescribeReceiptRuleSetError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_receipt_rule_set::DescribeReceiptRuleSetError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::describe_receipt_rule_set::DescribeReceiptRuleSetError> for Error {
fn from(err: crate::operation::describe_receipt_rule_set::DescribeReceiptRuleSetError) -> Self {
match err {
crate::operation::describe_receipt_rule_set::DescribeReceiptRuleSetError::RuleSetDoesNotExistException(inner) => {
Error::RuleSetDoesNotExistException(inner)
}
crate::operation::describe_receipt_rule_set::DescribeReceiptRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_sending_enabled::GetAccountSendingEnabledError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_sending_enabled::GetAccountSendingEnabledError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_account_sending_enabled::GetAccountSendingEnabledError> for Error {
fn from(err: crate::operation::get_account_sending_enabled::GetAccountSendingEnabledError) -> Self {
match err {
crate::operation::get_account_sending_enabled::GetAccountSendingEnabledError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError> for Error {
fn from(err: crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError) -> Self {
match err {
crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError::CustomVerificationEmailTemplateDoesNotExistException(inner) => Error::CustomVerificationEmailTemplateDoesNotExistException(inner),
crate::operation::get_custom_verification_email_template::GetCustomVerificationEmailTemplateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_identity_dkim_attributes::GetIdentityDkimAttributesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_identity_dkim_attributes::GetIdentityDkimAttributesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_identity_dkim_attributes::GetIdentityDkimAttributesError> for Error {
fn from(err: crate::operation::get_identity_dkim_attributes::GetIdentityDkimAttributesError) -> Self {
match err {
crate::operation::get_identity_dkim_attributes::GetIdentityDkimAttributesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_identity_mail_from_domain_attributes::GetIdentityMailFromDomainAttributesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_identity_mail_from_domain_attributes::GetIdentityMailFromDomainAttributesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_identity_mail_from_domain_attributes::GetIdentityMailFromDomainAttributesError> for Error {
fn from(err: crate::operation::get_identity_mail_from_domain_attributes::GetIdentityMailFromDomainAttributesError) -> Self {
match err {
crate::operation::get_identity_mail_from_domain_attributes::GetIdentityMailFromDomainAttributesError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_identity_notification_attributes::GetIdentityNotificationAttributesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_identity_notification_attributes::GetIdentityNotificationAttributesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_identity_notification_attributes::GetIdentityNotificationAttributesError> for Error {
fn from(err: crate::operation::get_identity_notification_attributes::GetIdentityNotificationAttributesError) -> Self {
match err {
crate::operation::get_identity_notification_attributes::GetIdentityNotificationAttributesError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_identity_policies::GetIdentityPoliciesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_identity_policies::GetIdentityPoliciesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_identity_policies::GetIdentityPoliciesError> for Error {
fn from(err: crate::operation::get_identity_policies::GetIdentityPoliciesError) -> Self {
match err {
crate::operation::get_identity_policies::GetIdentityPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_identity_verification_attributes::GetIdentityVerificationAttributesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_identity_verification_attributes::GetIdentityVerificationAttributesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_identity_verification_attributes::GetIdentityVerificationAttributesError> for Error {
fn from(err: crate::operation::get_identity_verification_attributes::GetIdentityVerificationAttributesError) -> Self {
match err {
crate::operation::get_identity_verification_attributes::GetIdentityVerificationAttributesError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_send_quota::GetSendQuotaError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_send_quota::GetSendQuotaError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_send_quota::GetSendQuotaError> for Error {
fn from(err: crate::operation::get_send_quota::GetSendQuotaError) -> Self {
match err {
crate::operation::get_send_quota::GetSendQuotaError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_send_statistics::GetSendStatisticsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_send_statistics::GetSendStatisticsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_send_statistics::GetSendStatisticsError> for Error {
fn from(err: crate::operation::get_send_statistics::GetSendStatisticsError) -> Self {
match err {
crate::operation::get_send_statistics::GetSendStatisticsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template::GetTemplateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template::GetTemplateError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_template::GetTemplateError> for Error {
fn from(err: crate::operation::get_template::GetTemplateError) -> Self {
match err {
crate::operation::get_template::GetTemplateError::TemplateDoesNotExistException(inner) => Error::TemplateDoesNotExistException(inner),
crate::operation::get_template::GetTemplateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_configuration_sets::ListConfigurationSetsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_configuration_sets::ListConfigurationSetsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_configuration_sets::ListConfigurationSetsError> for Error {
fn from(err: crate::operation::list_configuration_sets::ListConfigurationSetsError) -> Self {
match err {
crate::operation::list_configuration_sets::ListConfigurationSetsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_custom_verification_email_templates::ListCustomVerificationEmailTemplatesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_custom_verification_email_templates::ListCustomVerificationEmailTemplatesError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_custom_verification_email_templates::ListCustomVerificationEmailTemplatesError> for Error {
fn from(err: crate::operation::list_custom_verification_email_templates::ListCustomVerificationEmailTemplatesError) -> Self {
match err {
crate::operation::list_custom_verification_email_templates::ListCustomVerificationEmailTemplatesError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_identities::ListIdentitiesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_identities::ListIdentitiesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_identities::ListIdentitiesError> for Error {
fn from(err: crate::operation::list_identities::ListIdentitiesError) -> Self {
match err {
crate::operation::list_identities::ListIdentitiesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_identity_policies::ListIdentityPoliciesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_identity_policies::ListIdentityPoliciesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_identity_policies::ListIdentityPoliciesError> for Error {
fn from(err: crate::operation::list_identity_policies::ListIdentityPoliciesError) -> Self {
match err {
crate::operation::list_identity_policies::ListIdentityPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_receipt_filters::ListReceiptFiltersError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_receipt_filters::ListReceiptFiltersError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_receipt_filters::ListReceiptFiltersError> for Error {
fn from(err: crate::operation::list_receipt_filters::ListReceiptFiltersError) -> Self {
match err {
crate::operation::list_receipt_filters::ListReceiptFiltersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_receipt_rule_sets::ListReceiptRuleSetsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_receipt_rule_sets::ListReceiptRuleSetsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_receipt_rule_sets::ListReceiptRuleSetsError> for Error {
fn from(err: crate::operation::list_receipt_rule_sets::ListReceiptRuleSetsError) -> Self {
match err {
crate::operation::list_receipt_rule_sets::ListReceiptRuleSetsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_templates::ListTemplatesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_templates::ListTemplatesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_templates::ListTemplatesError> for Error {
fn from(err: crate::operation::list_templates::ListTemplatesError) -> Self {
match err {
crate::operation::list_templates::ListTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_verified_email_addresses::ListVerifiedEmailAddressesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_verified_email_addresses::ListVerifiedEmailAddressesError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::list_verified_email_addresses::ListVerifiedEmailAddressesError> for Error {
fn from(err: crate::operation::list_verified_email_addresses::ListVerifiedEmailAddressesError) -> Self {
match err {
crate::operation::list_verified_email_addresses::ListVerifiedEmailAddressesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError> for Error {
fn from(err: crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError) -> Self {
match err {
crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError::InvalidDeliveryOptionsException(inner) => Error::InvalidDeliveryOptionsException(inner),
crate::operation::put_configuration_set_delivery_options::PutConfigurationSetDeliveryOptionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_identity_policy::PutIdentityPolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_identity_policy::PutIdentityPolicyError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::put_identity_policy::PutIdentityPolicyError> for Error {
fn from(err: crate::operation::put_identity_policy::PutIdentityPolicyError) -> Self {
match err {
crate::operation::put_identity_policy::PutIdentityPolicyError::InvalidPolicyException(inner) => Error::InvalidPolicyException(inner),
crate::operation::put_identity_policy::PutIdentityPolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reorder_receipt_rule_set::ReorderReceiptRuleSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reorder_receipt_rule_set::ReorderReceiptRuleSetError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::reorder_receipt_rule_set::ReorderReceiptRuleSetError> for Error {
fn from(err: crate::operation::reorder_receipt_rule_set::ReorderReceiptRuleSetError) -> Self {
match err {
crate::operation::reorder_receipt_rule_set::ReorderReceiptRuleSetError::RuleDoesNotExistException(inner) => {
Error::RuleDoesNotExistException(inner)
}
crate::operation::reorder_receipt_rule_set::ReorderReceiptRuleSetError::RuleSetDoesNotExistException(inner) => {
Error::RuleSetDoesNotExistException(inner)
}
crate::operation::reorder_receipt_rule_set::ReorderReceiptRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_bounce::SendBounceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_bounce::SendBounceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::send_bounce::SendBounceError> for Error {
fn from(err: crate::operation::send_bounce::SendBounceError) -> Self {
match err {
crate::operation::send_bounce::SendBounceError::MessageRejected(inner) => Error::MessageRejected(inner),
crate::operation::send_bounce::SendBounceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError> for Error {
fn from(err: crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError) -> Self {
match err {
crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError::AccountSendingPausedException(inner) => {
Error::AccountSendingPausedException(inner)
}
crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError::ConfigurationSetDoesNotExistException(inner) => {
Error::ConfigurationSetDoesNotExistException(inner)
}
crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError::ConfigurationSetSendingPausedException(inner) => {
Error::ConfigurationSetSendingPausedException(inner)
}
crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError::MailFromDomainNotVerifiedException(inner) => {
Error::MailFromDomainNotVerifiedException(inner)
}
crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError::MessageRejected(inner) => Error::MessageRejected(inner),
crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError::TemplateDoesNotExistException(inner) => {
Error::TemplateDoesNotExistException(inner)
}
crate::operation::send_bulk_templated_email::SendBulkTemplatedEmailError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_custom_verification_email::SendCustomVerificationEmailError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::send_custom_verification_email::SendCustomVerificationEmailError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::send_custom_verification_email::SendCustomVerificationEmailError> for Error {
fn from(err: crate::operation::send_custom_verification_email::SendCustomVerificationEmailError) -> Self {
match err {
crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::CustomVerificationEmailTemplateDoesNotExistException(inner) => Error::CustomVerificationEmailTemplateDoesNotExistException(inner),
crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::FromEmailAddressNotVerifiedException(inner) => Error::FromEmailAddressNotVerifiedException(inner),
crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::MessageRejected(inner) => Error::MessageRejected(inner),
crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::ProductionAccessNotGrantedException(inner) => Error::ProductionAccessNotGrantedException(inner),
crate::operation::send_custom_verification_email::SendCustomVerificationEmailError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_email::SendEmailError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_email::SendEmailError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::send_email::SendEmailError> for Error {
fn from(err: crate::operation::send_email::SendEmailError) -> Self {
match err {
crate::operation::send_email::SendEmailError::AccountSendingPausedException(inner) => Error::AccountSendingPausedException(inner),
crate::operation::send_email::SendEmailError::ConfigurationSetDoesNotExistException(inner) => {
Error::ConfigurationSetDoesNotExistException(inner)
}
crate::operation::send_email::SendEmailError::ConfigurationSetSendingPausedException(inner) => {
Error::ConfigurationSetSendingPausedException(inner)
}
crate::operation::send_email::SendEmailError::MailFromDomainNotVerifiedException(inner) => {
Error::MailFromDomainNotVerifiedException(inner)
}
crate::operation::send_email::SendEmailError::MessageRejected(inner) => Error::MessageRejected(inner),
crate::operation::send_email::SendEmailError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_raw_email::SendRawEmailError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_raw_email::SendRawEmailError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::send_raw_email::SendRawEmailError> for Error {
fn from(err: crate::operation::send_raw_email::SendRawEmailError) -> Self {
match err {
crate::operation::send_raw_email::SendRawEmailError::AccountSendingPausedException(inner) => Error::AccountSendingPausedException(inner),
crate::operation::send_raw_email::SendRawEmailError::ConfigurationSetDoesNotExistException(inner) => {
Error::ConfigurationSetDoesNotExistException(inner)
}
crate::operation::send_raw_email::SendRawEmailError::ConfigurationSetSendingPausedException(inner) => {
Error::ConfigurationSetSendingPausedException(inner)
}
crate::operation::send_raw_email::SendRawEmailError::MailFromDomainNotVerifiedException(inner) => {
Error::MailFromDomainNotVerifiedException(inner)
}
crate::operation::send_raw_email::SendRawEmailError::MessageRejected(inner) => Error::MessageRejected(inner),
crate::operation::send_raw_email::SendRawEmailError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_templated_email::SendTemplatedEmailError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_templated_email::SendTemplatedEmailError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::send_templated_email::SendTemplatedEmailError> for Error {
fn from(err: crate::operation::send_templated_email::SendTemplatedEmailError) -> Self {
match err {
crate::operation::send_templated_email::SendTemplatedEmailError::AccountSendingPausedException(inner) => {
Error::AccountSendingPausedException(inner)
}
crate::operation::send_templated_email::SendTemplatedEmailError::ConfigurationSetDoesNotExistException(inner) => {
Error::ConfigurationSetDoesNotExistException(inner)
}
crate::operation::send_templated_email::SendTemplatedEmailError::ConfigurationSetSendingPausedException(inner) => {
Error::ConfigurationSetSendingPausedException(inner)
}
crate::operation::send_templated_email::SendTemplatedEmailError::MailFromDomainNotVerifiedException(inner) => {
Error::MailFromDomainNotVerifiedException(inner)
}
crate::operation::send_templated_email::SendTemplatedEmailError::MessageRejected(inner) => Error::MessageRejected(inner),
crate::operation::send_templated_email::SendTemplatedEmailError::TemplateDoesNotExistException(inner) => {
Error::TemplateDoesNotExistException(inner)
}
crate::operation::send_templated_email::SendTemplatedEmailError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_active_receipt_rule_set::SetActiveReceiptRuleSetError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_active_receipt_rule_set::SetActiveReceiptRuleSetError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::set_active_receipt_rule_set::SetActiveReceiptRuleSetError> for Error {
fn from(err: crate::operation::set_active_receipt_rule_set::SetActiveReceiptRuleSetError) -> Self {
match err {
crate::operation::set_active_receipt_rule_set::SetActiveReceiptRuleSetError::RuleSetDoesNotExistException(inner) => {
Error::RuleSetDoesNotExistException(inner)
}
crate::operation::set_active_receipt_rule_set::SetActiveReceiptRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_identity_dkim_enabled::SetIdentityDkimEnabledError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_identity_dkim_enabled::SetIdentityDkimEnabledError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::set_identity_dkim_enabled::SetIdentityDkimEnabledError> for Error {
fn from(err: crate::operation::set_identity_dkim_enabled::SetIdentityDkimEnabledError) -> Self {
match err {
crate::operation::set_identity_dkim_enabled::SetIdentityDkimEnabledError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_identity_feedback_forwarding_enabled::SetIdentityFeedbackForwardingEnabledError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_identity_feedback_forwarding_enabled::SetIdentityFeedbackForwardingEnabledError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::set_identity_feedback_forwarding_enabled::SetIdentityFeedbackForwardingEnabledError> for Error {
fn from(err: crate::operation::set_identity_feedback_forwarding_enabled::SetIdentityFeedbackForwardingEnabledError) -> Self {
match err {
crate::operation::set_identity_feedback_forwarding_enabled::SetIdentityFeedbackForwardingEnabledError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_identity_headers_in_notifications_enabled::SetIdentityHeadersInNotificationsEnabledError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_identity_headers_in_notifications_enabled::SetIdentityHeadersInNotificationsEnabledError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::set_identity_headers_in_notifications_enabled::SetIdentityHeadersInNotificationsEnabledError> for Error {
fn from(err: crate::operation::set_identity_headers_in_notifications_enabled::SetIdentityHeadersInNotificationsEnabledError) -> Self {
match err {
crate::operation::set_identity_headers_in_notifications_enabled::SetIdentityHeadersInNotificationsEnabledError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_identity_mail_from_domain::SetIdentityMailFromDomainError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_identity_mail_from_domain::SetIdentityMailFromDomainError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::set_identity_mail_from_domain::SetIdentityMailFromDomainError> for Error {
fn from(err: crate::operation::set_identity_mail_from_domain::SetIdentityMailFromDomainError) -> Self {
match err {
crate::operation::set_identity_mail_from_domain::SetIdentityMailFromDomainError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_identity_notification_topic::SetIdentityNotificationTopicError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_identity_notification_topic::SetIdentityNotificationTopicError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::set_identity_notification_topic::SetIdentityNotificationTopicError> for Error {
fn from(err: crate::operation::set_identity_notification_topic::SetIdentityNotificationTopicError) -> Self {
match err {
crate::operation::set_identity_notification_topic::SetIdentityNotificationTopicError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_receipt_rule_position::SetReceiptRulePositionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_receipt_rule_position::SetReceiptRulePositionError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::set_receipt_rule_position::SetReceiptRulePositionError> for Error {
fn from(err: crate::operation::set_receipt_rule_position::SetReceiptRulePositionError) -> Self {
match err {
crate::operation::set_receipt_rule_position::SetReceiptRulePositionError::RuleDoesNotExistException(inner) => {
Error::RuleDoesNotExistException(inner)
}
crate::operation::set_receipt_rule_position::SetReceiptRulePositionError::RuleSetDoesNotExistException(inner) => {
Error::RuleSetDoesNotExistException(inner)
}
crate::operation::set_receipt_rule_position::SetReceiptRulePositionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_render_template::TestRenderTemplateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_render_template::TestRenderTemplateError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::test_render_template::TestRenderTemplateError> for Error {
fn from(err: crate::operation::test_render_template::TestRenderTemplateError) -> Self {
match err {
crate::operation::test_render_template::TestRenderTemplateError::InvalidRenderingParameterException(inner) => {
Error::InvalidRenderingParameterException(inner)
}
crate::operation::test_render_template::TestRenderTemplateError::MissingRenderingAttributeException(inner) => {
Error::MissingRenderingAttributeException(inner)
}
crate::operation::test_render_template::TestRenderTemplateError::TemplateDoesNotExistException(inner) => {
Error::TemplateDoesNotExistException(inner)
}
crate::operation::test_render_template::TestRenderTemplateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account_sending_enabled::UpdateAccountSendingEnabledError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_account_sending_enabled::UpdateAccountSendingEnabledError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_account_sending_enabled::UpdateAccountSendingEnabledError> for Error {
fn from(err: crate::operation::update_account_sending_enabled::UpdateAccountSendingEnabledError) -> Self {
match err {
crate::operation::update_account_sending_enabled::UpdateAccountSendingEnabledError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError> for Error {
fn from(err: crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError) -> Self {
match err {
crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::EventDestinationDoesNotExistException(inner) => Error::EventDestinationDoesNotExistException(inner),
crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::InvalidCloudWatchDestinationException(inner) => Error::InvalidCloudWatchDestinationException(inner),
crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::InvalidFirehoseDestinationException(inner) => Error::InvalidFirehoseDestinationException(inner),
crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::InvalidSnsDestinationException(inner) => Error::InvalidSnsDestinationException(inner),
crate::operation::update_configuration_set_event_destination::UpdateConfigurationSetEventDestinationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_configuration_set_reputation_metrics_enabled::UpdateConfigurationSetReputationMetricsEnabledError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_configuration_set_reputation_metrics_enabled::UpdateConfigurationSetReputationMetricsEnabledError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_configuration_set_reputation_metrics_enabled::UpdateConfigurationSetReputationMetricsEnabledError> for Error {
fn from(err: crate::operation::update_configuration_set_reputation_metrics_enabled::UpdateConfigurationSetReputationMetricsEnabledError) -> Self {
match err {
crate::operation::update_configuration_set_reputation_metrics_enabled::UpdateConfigurationSetReputationMetricsEnabledError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
crate::operation::update_configuration_set_reputation_metrics_enabled::UpdateConfigurationSetReputationMetricsEnabledError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_configuration_set_sending_enabled::UpdateConfigurationSetSendingEnabledError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_configuration_set_sending_enabled::UpdateConfigurationSetSendingEnabledError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_configuration_set_sending_enabled::UpdateConfigurationSetSendingEnabledError> for Error {
fn from(err: crate::operation::update_configuration_set_sending_enabled::UpdateConfigurationSetSendingEnabledError) -> Self {
match err {
crate::operation::update_configuration_set_sending_enabled::UpdateConfigurationSetSendingEnabledError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
crate::operation::update_configuration_set_sending_enabled::UpdateConfigurationSetSendingEnabledError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_configuration_set_tracking_options::UpdateConfigurationSetTrackingOptionsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_configuration_set_tracking_options::UpdateConfigurationSetTrackingOptionsError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_configuration_set_tracking_options::UpdateConfigurationSetTrackingOptionsError> for Error {
fn from(err: crate::operation::update_configuration_set_tracking_options::UpdateConfigurationSetTrackingOptionsError) -> Self {
match err {
crate::operation::update_configuration_set_tracking_options::UpdateConfigurationSetTrackingOptionsError::ConfigurationSetDoesNotExistException(inner) => Error::ConfigurationSetDoesNotExistException(inner),
crate::operation::update_configuration_set_tracking_options::UpdateConfigurationSetTrackingOptionsError::InvalidTrackingOptionsException(inner) => Error::InvalidTrackingOptionsException(inner),
crate::operation::update_configuration_set_tracking_options::UpdateConfigurationSetTrackingOptionsError::TrackingOptionsDoesNotExistException(inner) => Error::TrackingOptionsDoesNotExistException(inner),
crate::operation::update_configuration_set_tracking_options::UpdateConfigurationSetTrackingOptionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError> for Error {
fn from(err: crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError) -> Self {
match err {
crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError::CustomVerificationEmailInvalidContentException(inner) => Error::CustomVerificationEmailInvalidContentException(inner),
crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError::CustomVerificationEmailTemplateDoesNotExistException(inner) => Error::CustomVerificationEmailTemplateDoesNotExistException(inner),
crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError::FromEmailAddressNotVerifiedException(inner) => Error::FromEmailAddressNotVerifiedException(inner),
crate::operation::update_custom_verification_email_template::UpdateCustomVerificationEmailTemplateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_receipt_rule::UpdateReceiptRuleError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_receipt_rule::UpdateReceiptRuleError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_receipt_rule::UpdateReceiptRuleError> for Error {
fn from(err: crate::operation::update_receipt_rule::UpdateReceiptRuleError) -> Self {
match err {
crate::operation::update_receipt_rule::UpdateReceiptRuleError::InvalidLambdaFunctionException(inner) => {
Error::InvalidLambdaFunctionException(inner)
}
crate::operation::update_receipt_rule::UpdateReceiptRuleError::InvalidS3ConfigurationException(inner) => {
Error::InvalidS3ConfigurationException(inner)
}
crate::operation::update_receipt_rule::UpdateReceiptRuleError::InvalidSnsTopicException(inner) => Error::InvalidSnsTopicException(inner),
crate::operation::update_receipt_rule::UpdateReceiptRuleError::LimitExceededException(inner) => Error::LimitExceededException(inner),
crate::operation::update_receipt_rule::UpdateReceiptRuleError::RuleDoesNotExistException(inner) => {
Error::RuleDoesNotExistException(inner)
}
crate::operation::update_receipt_rule::UpdateReceiptRuleError::RuleSetDoesNotExistException(inner) => {
Error::RuleSetDoesNotExistException(inner)
}
crate::operation::update_receipt_rule::UpdateReceiptRuleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_template::UpdateTemplateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_template::UpdateTemplateError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_template::UpdateTemplateError> for Error {
fn from(err: crate::operation::update_template::UpdateTemplateError) -> Self {
match err {
crate::operation::update_template::UpdateTemplateError::InvalidTemplateException(inner) => Error::InvalidTemplateException(inner),
crate::operation::update_template::UpdateTemplateError::TemplateDoesNotExistException(inner) => {
Error::TemplateDoesNotExistException(inner)
}
crate::operation::update_template::UpdateTemplateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_domain_dkim::VerifyDomainDkimError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_domain_dkim::VerifyDomainDkimError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::verify_domain_dkim::VerifyDomainDkimError> for Error {
fn from(err: crate::operation::verify_domain_dkim::VerifyDomainDkimError) -> Self {
match err {
crate::operation::verify_domain_dkim::VerifyDomainDkimError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_domain_identity::VerifyDomainIdentityError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_domain_identity::VerifyDomainIdentityError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::verify_domain_identity::VerifyDomainIdentityError> for Error {
fn from(err: crate::operation::verify_domain_identity::VerifyDomainIdentityError) -> Self {
match err {
crate::operation::verify_domain_identity::VerifyDomainIdentityError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_email_address::VerifyEmailAddressError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_email_address::VerifyEmailAddressError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::verify_email_address::VerifyEmailAddressError> for Error {
fn from(err: crate::operation::verify_email_address::VerifyEmailAddressError) -> Self {
match err {
crate::operation::verify_email_address::VerifyEmailAddressError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_email_identity::VerifyEmailIdentityError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_email_identity::VerifyEmailIdentityError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::verify_email_identity::VerifyEmailIdentityError> for Error {
fn from(err: crate::operation::verify_email_identity::VerifyEmailIdentityError) -> Self {
match err {
crate::operation::verify_email_identity::VerifyEmailIdentityError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl ::std::error::Error for Error {
fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
match self {
Error::AccountSendingPausedException(inner) => inner.source(),
Error::AlreadyExistsException(inner) => inner.source(),
Error::CannotDeleteException(inner) => inner.source(),
Error::ConfigurationSetAlreadyExistsException(inner) => inner.source(),
Error::ConfigurationSetDoesNotExistException(inner) => inner.source(),
Error::ConfigurationSetSendingPausedException(inner) => inner.source(),
Error::CustomVerificationEmailInvalidContentException(inner) => inner.source(),
Error::CustomVerificationEmailTemplateAlreadyExistsException(inner) => inner.source(),
Error::CustomVerificationEmailTemplateDoesNotExistException(inner) => inner.source(),
Error::EventDestinationAlreadyExistsException(inner) => inner.source(),
Error::EventDestinationDoesNotExistException(inner) => inner.source(),
Error::FromEmailAddressNotVerifiedException(inner) => inner.source(),
Error::InvalidCloudWatchDestinationException(inner) => inner.source(),
Error::InvalidConfigurationSetException(inner) => inner.source(),
Error::InvalidDeliveryOptionsException(inner) => inner.source(),
Error::InvalidFirehoseDestinationException(inner) => inner.source(),
Error::InvalidLambdaFunctionException(inner) => inner.source(),
Error::InvalidPolicyException(inner) => inner.source(),
Error::InvalidRenderingParameterException(inner) => inner.source(),
Error::InvalidS3ConfigurationException(inner) => inner.source(),
Error::InvalidSnsDestinationException(inner) => inner.source(),
Error::InvalidSnsTopicException(inner) => inner.source(),
Error::InvalidTemplateException(inner) => inner.source(),
Error::InvalidTrackingOptionsException(inner) => inner.source(),
Error::LimitExceededException(inner) => inner.source(),
Error::MailFromDomainNotVerifiedException(inner) => inner.source(),
Error::MessageRejected(inner) => inner.source(),
Error::MissingRenderingAttributeException(inner) => inner.source(),
Error::ProductionAccessNotGrantedException(inner) => inner.source(),
Error::RuleDoesNotExistException(inner) => inner.source(),
Error::RuleSetDoesNotExistException(inner) => inner.source(),
Error::TemplateDoesNotExistException(inner) => inner.source(),
Error::TrackingOptionsAlreadyExistsException(inner) => inner.source(),
Error::TrackingOptionsDoesNotExistException(inner) => inner.source(),
Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
}
}
}
impl ::aws_types::request_id::RequestId for Error {
fn request_id(&self) -> Option<&str> {
match self {
Self::AccountSendingPausedException(e) => e.request_id(),
Self::AlreadyExistsException(e) => e.request_id(),
Self::CannotDeleteException(e) => e.request_id(),
Self::ConfigurationSetAlreadyExistsException(e) => e.request_id(),
Self::ConfigurationSetDoesNotExistException(e) => e.request_id(),
Self::ConfigurationSetSendingPausedException(e) => e.request_id(),
Self::CustomVerificationEmailInvalidContentException(e) => e.request_id(),
Self::CustomVerificationEmailTemplateAlreadyExistsException(e) => e.request_id(),
Self::CustomVerificationEmailTemplateDoesNotExistException(e) => e.request_id(),
Self::EventDestinationAlreadyExistsException(e) => e.request_id(),
Self::EventDestinationDoesNotExistException(e) => e.request_id(),
Self::FromEmailAddressNotVerifiedException(e) => e.request_id(),
Self::InvalidCloudWatchDestinationException(e) => e.request_id(),
Self::InvalidConfigurationSetException(e) => e.request_id(),
Self::InvalidDeliveryOptionsException(e) => e.request_id(),
Self::InvalidFirehoseDestinationException(e) => e.request_id(),
Self::InvalidLambdaFunctionException(e) => e.request_id(),
Self::InvalidPolicyException(e) => e.request_id(),
Self::InvalidRenderingParameterException(e) => e.request_id(),
Self::InvalidS3ConfigurationException(e) => e.request_id(),
Self::InvalidSnsDestinationException(e) => e.request_id(),
Self::InvalidSnsTopicException(e) => e.request_id(),
Self::InvalidTemplateException(e) => e.request_id(),
Self::InvalidTrackingOptionsException(e) => e.request_id(),
Self::LimitExceededException(e) => e.request_id(),
Self::MailFromDomainNotVerifiedException(e) => e.request_id(),
Self::MessageRejected(e) => e.request_id(),
Self::MissingRenderingAttributeException(e) => e.request_id(),
Self::ProductionAccessNotGrantedException(e) => e.request_id(),
Self::RuleDoesNotExistException(e) => e.request_id(),
Self::RuleSetDoesNotExistException(e) => e.request_id(),
Self::TemplateDoesNotExistException(e) => e.request_id(),
Self::TrackingOptionsAlreadyExistsException(e) => e.request_id(),
Self::TrackingOptionsDoesNotExistException(e) => e.request_id(),
Self::Unhandled(e) => e.meta.request_id(),
}
}
}