#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
AccessDeniedException(crate::types::error::AccessDeniedException),
ConflictException(crate::types::error::ConflictException),
InternalServerException(crate::types::error::InternalServerException),
ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
ThrottlingException(crate::types::error::ThrottlingException),
ValidationException(crate::types::error::ValidationException),
#[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::AccessDeniedException(inner) => inner.fmt(f),
Error::ConflictException(inner) => inner.fmt(f),
Error::InternalServerException(inner) => inner.fmt(f),
Error::ResourceNotFoundException(inner) => inner.fmt(f),
Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
Error::ThrottlingException(inner) => inner.fmt(f),
Error::ValidationException(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::AccessDeniedException(inner) => inner.meta(),
Self::ConflictException(inner) => inner.meta(),
Self::InternalServerException(inner) => inner.meta(),
Self::ResourceNotFoundException(inner) => inner.meta(),
Self::ServiceQuotaExceededException(inner) => inner.meta(),
Self::ThrottlingException(inner) => inner.meta(),
Self::ValidationException(inner) => inner.meta(),
Self::Unhandled(inner) => &inner.meta,
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_origination_identity::AssociateOriginationIdentityError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::associate_origination_identity::AssociateOriginationIdentityError,
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::associate_origination_identity::AssociateOriginationIdentityError> for Error {
fn from(err: crate::operation::associate_origination_identity::AssociateOriginationIdentityError) -> Self {
match err {
crate::operation::associate_origination_identity::AssociateOriginationIdentityError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::associate_origination_identity::AssociateOriginationIdentityError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::associate_origination_identity::AssociateOriginationIdentityError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::associate_origination_identity::AssociateOriginationIdentityError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::associate_origination_identity::AssociateOriginationIdentityError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::associate_origination_identity::AssociateOriginationIdentityError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::associate_origination_identity::AssociateOriginationIdentityError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::associate_origination_identity::AssociateOriginationIdentityError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_protect_configuration::AssociateProtectConfigurationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::associate_protect_configuration::AssociateProtectConfigurationError,
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::associate_protect_configuration::AssociateProtectConfigurationError> for Error {
fn from(err: crate::operation::associate_protect_configuration::AssociateProtectConfigurationError) -> Self {
match err {
crate::operation::associate_protect_configuration::AssociateProtectConfigurationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::associate_protect_configuration::AssociateProtectConfigurationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::associate_protect_configuration::AssociateProtectConfigurationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::associate_protect_configuration::AssociateProtectConfigurationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::associate_protect_configuration::AssociateProtectConfigurationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::associate_protect_configuration::AssociateProtectConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::associate_protect_configuration::AssociateProtectConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::carrier_lookup::CarrierLookupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::carrier_lookup::CarrierLookupError, 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::carrier_lookup::CarrierLookupError> for Error {
fn from(err: crate::operation::carrier_lookup::CarrierLookupError) -> Self {
match err {
crate::operation::carrier_lookup::CarrierLookupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::carrier_lookup::CarrierLookupError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::carrier_lookup::CarrierLookupError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::carrier_lookup::CarrierLookupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::carrier_lookup::CarrierLookupError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::carrier_lookup::CarrierLookupError::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::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_configuration_set::CreateConfigurationSetError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_configuration_set::CreateConfigurationSetError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_configuration_set::CreateConfigurationSetError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_configuration_set::CreateConfigurationSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_configuration_set::CreateConfigurationSetError::ValidationException(inner) => Error::ValidationException(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_event_destination::CreateEventDestinationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_destination::CreateEventDestinationError, 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_event_destination::CreateEventDestinationError> for Error {
fn from(err: crate::operation::create_event_destination::CreateEventDestinationError) -> Self {
match err {
crate::operation::create_event_destination::CreateEventDestinationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_event_destination::CreateEventDestinationError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_event_destination::CreateEventDestinationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_event_destination::CreateEventDestinationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_event_destination::CreateEventDestinationError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_event_destination::CreateEventDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_event_destination::CreateEventDestinationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_event_destination::CreateEventDestinationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notify_configuration::CreateNotifyConfigurationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notify_configuration::CreateNotifyConfigurationError, 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_notify_configuration::CreateNotifyConfigurationError> for Error {
fn from(err: crate::operation::create_notify_configuration::CreateNotifyConfigurationError) -> Self {
match err {
crate::operation::create_notify_configuration::CreateNotifyConfigurationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_notify_configuration::CreateNotifyConfigurationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::create_notify_configuration::CreateNotifyConfigurationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_notify_configuration::CreateNotifyConfigurationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_notify_configuration::CreateNotifyConfigurationError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_notify_configuration::CreateNotifyConfigurationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_notify_configuration::CreateNotifyConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_notify_configuration::CreateNotifyConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_opt_out_list::CreateOptOutListError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_opt_out_list::CreateOptOutListError, 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_opt_out_list::CreateOptOutListError> for Error {
fn from(err: crate::operation::create_opt_out_list::CreateOptOutListError) -> Self {
match err {
crate::operation::create_opt_out_list::CreateOptOutListError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_opt_out_list::CreateOptOutListError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_opt_out_list::CreateOptOutListError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_opt_out_list::CreateOptOutListError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_opt_out_list::CreateOptOutListError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_opt_out_list::CreateOptOutListError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_opt_out_list::CreateOptOutListError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pool::CreatePoolError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pool::CreatePoolError, 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_pool::CreatePoolError> for Error {
fn from(err: crate::operation::create_pool::CreatePoolError) -> Self {
match err {
crate::operation::create_pool::CreatePoolError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_pool::CreatePoolError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_pool::CreatePoolError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_pool::CreatePoolError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_pool::CreatePoolError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_pool::CreatePoolError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_pool::CreatePoolError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_pool::CreatePoolError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_protect_configuration::CreateProtectConfigurationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_protect_configuration::CreateProtectConfigurationError, 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_protect_configuration::CreateProtectConfigurationError> for Error {
fn from(err: crate::operation::create_protect_configuration::CreateProtectConfigurationError) -> Self {
match err {
crate::operation::create_protect_configuration::CreateProtectConfigurationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_protect_configuration::CreateProtectConfigurationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::create_protect_configuration::CreateProtectConfigurationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_protect_configuration::CreateProtectConfigurationError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_protect_configuration::CreateProtectConfigurationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_protect_configuration::CreateProtectConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_protect_configuration::CreateProtectConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rcs_agent::CreateRcsAgentError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rcs_agent::CreateRcsAgentError, 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_rcs_agent::CreateRcsAgentError> for Error {
fn from(err: crate::operation::create_rcs_agent::CreateRcsAgentError) -> Self {
match err {
crate::operation::create_rcs_agent::CreateRcsAgentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_rcs_agent::CreateRcsAgentError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_rcs_agent::CreateRcsAgentError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_rcs_agent::CreateRcsAgentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_rcs_agent::CreateRcsAgentError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_rcs_agent::CreateRcsAgentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_rcs_agent::CreateRcsAgentError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_rcs_agent::CreateRcsAgentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration::CreateRegistrationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration::CreateRegistrationError, 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_registration::CreateRegistrationError> for Error {
fn from(err: crate::operation::create_registration::CreateRegistrationError) -> Self {
match err {
crate::operation::create_registration::CreateRegistrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_registration::CreateRegistrationError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_registration::CreateRegistrationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_registration::CreateRegistrationError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_registration::CreateRegistrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_registration::CreateRegistrationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_registration::CreateRegistrationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration_association::CreateRegistrationAssociationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_registration_association::CreateRegistrationAssociationError,
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_registration_association::CreateRegistrationAssociationError> for Error {
fn from(err: crate::operation::create_registration_association::CreateRegistrationAssociationError) -> Self {
match err {
crate::operation::create_registration_association::CreateRegistrationAssociationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_registration_association::CreateRegistrationAssociationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::create_registration_association::CreateRegistrationAssociationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_registration_association::CreateRegistrationAssociationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_registration_association::CreateRegistrationAssociationError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_registration_association::CreateRegistrationAssociationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_registration_association::CreateRegistrationAssociationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_registration_association::CreateRegistrationAssociationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration_attachment::CreateRegistrationAttachmentError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_registration_attachment::CreateRegistrationAttachmentError,
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_registration_attachment::CreateRegistrationAttachmentError> for Error {
fn from(err: crate::operation::create_registration_attachment::CreateRegistrationAttachmentError) -> Self {
match err {
crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration_version::CreateRegistrationVersionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration_version::CreateRegistrationVersionError, 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_registration_version::CreateRegistrationVersionError> for Error {
fn from(err: crate::operation::create_registration_version::CreateRegistrationVersionError) -> Self {
match err {
crate::operation::create_registration_version::CreateRegistrationVersionError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_registration_version::CreateRegistrationVersionError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::create_registration_version::CreateRegistrationVersionError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_registration_version::CreateRegistrationVersionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_registration_version::CreateRegistrationVersionError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_registration_version::CreateRegistrationVersionError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_registration_version::CreateRegistrationVersionError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_registration_version::CreateRegistrationVersionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError,
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_verified_destination_number::CreateVerifiedDestinationNumberError> for Error {
fn from(err: crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError) -> Self {
match err {
crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError,
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_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError> for Error {
fn from(err: crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError) -> Self {
match err {
crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::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::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_configuration_set::DeleteConfigurationSetError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_configuration_set::DeleteConfigurationSetError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_configuration_set::DeleteConfigurationSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_configuration_set::DeleteConfigurationSetError::ValidationException(inner) => Error::ValidationException(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_default_message_type::DeleteDefaultMessageTypeError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError, 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_default_message_type::DeleteDefaultMessageTypeError> for Error {
fn from(err: crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError) -> Self {
match err {
crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError, 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_default_sender_id::DeleteDefaultSenderIdError> for Error {
fn from(err: crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError) -> Self {
match err {
crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_destination::DeleteEventDestinationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_destination::DeleteEventDestinationError, 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_event_destination::DeleteEventDestinationError> for Error {
fn from(err: crate::operation::delete_event_destination::DeleteEventDestinationError) -> Self {
match err {
crate::operation::delete_event_destination::DeleteEventDestinationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_event_destination::DeleteEventDestinationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_event_destination::DeleteEventDestinationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_event_destination::DeleteEventDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_event_destination::DeleteEventDestinationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_event_destination::DeleteEventDestinationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_keyword::DeleteKeywordError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_keyword::DeleteKeywordError, 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_keyword::DeleteKeywordError> for Error {
fn from(err: crate::operation::delete_keyword::DeleteKeywordError) -> Self {
match err {
crate::operation::delete_keyword::DeleteKeywordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_keyword::DeleteKeywordError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_keyword::DeleteKeywordError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_keyword::DeleteKeywordError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_keyword::DeleteKeywordError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_keyword::DeleteKeywordError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_keyword::DeleteKeywordError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError,
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_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError> for Error {
fn from(err: crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError) -> Self {
match err {
crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError::InternalServerException(
inner,
) => Error::InternalServerException(inner),
crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError, 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_notify_configuration::DeleteNotifyConfigurationError> for Error {
fn from(err: crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError) -> Self {
match err {
crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError,
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_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError> for Error {
fn from(err: crate::operation::delete_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError) -> Self {
match err {
crate::operation::delete_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError::AccessDeniedException(
inner,
) => Error::AccessDeniedException(inner),
crate::operation::delete_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError::InternalServerException(
inner,
) => Error::InternalServerException(inner),
crate::operation::delete_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_opted_out_number::DeleteOptedOutNumberError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_opted_out_number::DeleteOptedOutNumberError, 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_opted_out_number::DeleteOptedOutNumberError> for Error {
fn from(err: crate::operation::delete_opted_out_number::DeleteOptedOutNumberError) -> Self {
match err {
crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_opt_out_list::DeleteOptOutListError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_opt_out_list::DeleteOptOutListError, 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_opt_out_list::DeleteOptOutListError> for Error {
fn from(err: crate::operation::delete_opt_out_list::DeleteOptOutListError) -> Self {
match err {
crate::operation::delete_opt_out_list::DeleteOptOutListError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_opt_out_list::DeleteOptOutListError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_opt_out_list::DeleteOptOutListError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_opt_out_list::DeleteOptOutListError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_opt_out_list::DeleteOptOutListError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_opt_out_list::DeleteOptOutListError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_opt_out_list::DeleteOptOutListError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pool::DeletePoolError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pool::DeletePoolError, 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_pool::DeletePoolError> for Error {
fn from(err: crate::operation::delete_pool::DeletePoolError) -> Self {
match err {
crate::operation::delete_pool::DeletePoolError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_pool::DeletePoolError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_pool::DeletePoolError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_pool::DeletePoolError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_pool::DeletePoolError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_pool::DeletePoolError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_pool::DeletePoolError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_protect_configuration::DeleteProtectConfigurationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_protect_configuration::DeleteProtectConfigurationError, 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_protect_configuration::DeleteProtectConfigurationError> for Error {
fn from(err: crate::operation::delete_protect_configuration::DeleteProtectConfigurationError) -> Self {
match err {
crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError,
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_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError> for Error {
fn from(
err: crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError,
) -> Self {
match err {
crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rcs_agent::DeleteRcsAgentError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rcs_agent::DeleteRcsAgentError, 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_rcs_agent::DeleteRcsAgentError> for Error {
fn from(err: crate::operation::delete_rcs_agent::DeleteRcsAgentError) -> Self {
match err {
crate::operation::delete_rcs_agent::DeleteRcsAgentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_rcs_agent::DeleteRcsAgentError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_rcs_agent::DeleteRcsAgentError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_rcs_agent::DeleteRcsAgentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_rcs_agent::DeleteRcsAgentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_rcs_agent::DeleteRcsAgentError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_rcs_agent::DeleteRcsAgentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError,
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_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError> for Error {
fn from(err: crate::operation::delete_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError) -> Self {
match err {
crate::operation::delete_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registration::DeleteRegistrationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registration::DeleteRegistrationError, 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_registration::DeleteRegistrationError> for Error {
fn from(err: crate::operation::delete_registration::DeleteRegistrationError) -> Self {
match err {
crate::operation::delete_registration::DeleteRegistrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_registration::DeleteRegistrationError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_registration::DeleteRegistrationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_registration::DeleteRegistrationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_registration::DeleteRegistrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_registration::DeleteRegistrationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_registration::DeleteRegistrationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError,
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_registration_attachment::DeleteRegistrationAttachmentError> for Error {
fn from(err: crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError) -> Self {
match err {
crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError,
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_registration_field_value::DeleteRegistrationFieldValueError> for Error {
fn from(err: crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError) -> Self {
match err {
crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, 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_resource_policy::DeleteResourcePolicyError> for Error {
fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
match err {
crate::operation::delete_resource_policy::DeleteResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_resource_policy::DeleteResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError,
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_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError> for Error {
fn from(err: crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError) -> Self {
match err {
crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError,
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_destination_number::DeleteVerifiedDestinationNumberError,
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_destination_number::DeleteVerifiedDestinationNumberError> for Error {
fn from(err: crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError) -> Self {
match err {
crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError,
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_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError> for Error {
fn from(err: crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError) -> Self {
match err {
crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError::InternalServerException(
inner,
) => Error::InternalServerException(inner),
crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, 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_account_attributes::DescribeAccountAttributesError> for Error {
fn from(err: crate::operation::describe_account_attributes::DescribeAccountAttributesError) -> Self {
match err {
crate::operation::describe_account_attributes::DescribeAccountAttributesError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_account_attributes::DescribeAccountAttributesError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_account_attributes::DescribeAccountAttributesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_account_attributes::DescribeAccountAttributesError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_account_attributes::DescribeAccountAttributesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_limits::DescribeAccountLimitsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_limits::DescribeAccountLimitsError, 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_account_limits::DescribeAccountLimitsError> for Error {
fn from(err: crate::operation::describe_account_limits::DescribeAccountLimitsError) -> Self {
match err {
crate::operation::describe_account_limits::DescribeAccountLimitsError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_account_limits::DescribeAccountLimitsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_account_limits::DescribeAccountLimitsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_account_limits::DescribeAccountLimitsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_account_limits::DescribeAccountLimitsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_configuration_sets::DescribeConfigurationSetsError, 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_sets::DescribeConfigurationSetsError, 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_sets::DescribeConfigurationSetsError> for Error {
fn from(err: crate::operation::describe_configuration_sets::DescribeConfigurationSetsError) -> Self {
match err {
crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_keywords::DescribeKeywordsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_keywords::DescribeKeywordsError, 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_keywords::DescribeKeywordsError> for Error {
fn from(err: crate::operation::describe_keywords::DescribeKeywordsError) -> Self {
match err {
crate::operation::describe_keywords::DescribeKeywordsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::describe_keywords::DescribeKeywordsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_keywords::DescribeKeywordsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_keywords::DescribeKeywordsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_keywords::DescribeKeywordsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_keywords::DescribeKeywordsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError,
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_notify_configurations::DescribeNotifyConfigurationsError> for Error {
fn from(err: crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError) -> Self {
match err {
crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_notify_templates::DescribeNotifyTemplatesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_notify_templates::DescribeNotifyTemplatesError, 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_notify_templates::DescribeNotifyTemplatesError> for Error {
fn from(err: crate::operation::describe_notify_templates::DescribeNotifyTemplatesError) -> Self {
match err {
crate::operation::describe_notify_templates::DescribeNotifyTemplatesError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_notify_templates::DescribeNotifyTemplatesError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_notify_templates::DescribeNotifyTemplatesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_notify_templates::DescribeNotifyTemplatesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_notify_templates::DescribeNotifyTemplatesError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_notify_templates::DescribeNotifyTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError, 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_opted_out_numbers::DescribeOptedOutNumbersError> for Error {
fn from(err: crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError) -> Self {
match err {
crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_opt_out_lists::DescribeOptOutListsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_opt_out_lists::DescribeOptOutListsError, 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_opt_out_lists::DescribeOptOutListsError> for Error {
fn from(err: crate::operation::describe_opt_out_lists::DescribeOptOutListsError) -> Self {
match err {
crate::operation::describe_opt_out_lists::DescribeOptOutListsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::describe_opt_out_lists::DescribeOptOutListsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_opt_out_lists::DescribeOptOutListsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_opt_out_lists::DescribeOptOutListsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_opt_out_lists::DescribeOptOutListsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_opt_out_lists::DescribeOptOutListsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_phone_numbers::DescribePhoneNumbersError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_phone_numbers::DescribePhoneNumbersError, 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_phone_numbers::DescribePhoneNumbersError> for Error {
fn from(err: crate::operation::describe_phone_numbers::DescribePhoneNumbersError) -> Self {
match err {
crate::operation::describe_phone_numbers::DescribePhoneNumbersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::describe_phone_numbers::DescribePhoneNumbersError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_phone_numbers::DescribePhoneNumbersError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_phone_numbers::DescribePhoneNumbersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_phone_numbers::DescribePhoneNumbersError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_phone_numbers::DescribePhoneNumbersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pools::DescribePoolsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pools::DescribePoolsError, 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_pools::DescribePoolsError> for Error {
fn from(err: crate::operation::describe_pools::DescribePoolsError) -> Self {
match err {
crate::operation::describe_pools::DescribePoolsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::describe_pools::DescribePoolsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_pools::DescribePoolsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_pools::DescribePoolsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_pools::DescribePoolsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_pools::DescribePoolsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError,
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_protect_configurations::DescribeProtectConfigurationsError> for Error {
fn from(err: crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError) -> Self {
match err {
crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError,
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_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError> for Error {
fn from(err: crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError) -> Self {
match err {
crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rcs_agents::DescribeRcsAgentsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rcs_agents::DescribeRcsAgentsError, 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_rcs_agents::DescribeRcsAgentsError> for Error {
fn from(err: crate::operation::describe_rcs_agents::DescribeRcsAgentsError) -> Self {
match err {
crate::operation::describe_rcs_agents::DescribeRcsAgentsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::describe_rcs_agents::DescribeRcsAgentsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_rcs_agents::DescribeRcsAgentsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_rcs_agents::DescribeRcsAgentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_rcs_agents::DescribeRcsAgentsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_rcs_agents::DescribeRcsAgentsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError,
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_registration_attachments::DescribeRegistrationAttachmentsError> for Error {
fn from(err: crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError) -> Self {
match err {
crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError,
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_registration_field_definitions::DescribeRegistrationFieldDefinitionsError> for Error {
fn from(err: crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError) -> Self {
match err {
crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError,
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_registration_field_values::DescribeRegistrationFieldValuesError> for Error {
fn from(err: crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError) -> Self {
match err {
crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_registrations::DescribeRegistrationsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_registrations::DescribeRegistrationsError, 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_registrations::DescribeRegistrationsError> for Error {
fn from(err: crate::operation::describe_registrations::DescribeRegistrationsError) -> Self {
match err {
crate::operation::describe_registrations::DescribeRegistrationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::describe_registrations::DescribeRegistrationsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_registrations::DescribeRegistrationsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_registrations::DescribeRegistrationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_registrations::DescribeRegistrationsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_registrations::DescribeRegistrationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError,
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_registration_section_definitions::DescribeRegistrationSectionDefinitionsError> for Error {
fn from(err: crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError) -> Self {
match err {
crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError::AccessDeniedException(
inner,
) => Error::AccessDeniedException(inner),
crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError::InternalServerException(
inner,
) => Error::InternalServerException(inner),
crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError,
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_registration_type_definitions::DescribeRegistrationTypeDefinitionsError> for Error {
fn from(err: crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError) -> Self {
match err {
crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_registration_versions::DescribeRegistrationVersionsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_registration_versions::DescribeRegistrationVersionsError,
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_registration_versions::DescribeRegistrationVersionsError> for Error {
fn from(err: crate::operation::describe_registration_versions::DescribeRegistrationVersionsError) -> Self {
match err {
crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_sender_ids::DescribeSenderIdsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_sender_ids::DescribeSenderIdsError, 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_sender_ids::DescribeSenderIdsError> for Error {
fn from(err: crate::operation::describe_sender_ids::DescribeSenderIdsError) -> Self {
match err {
crate::operation::describe_sender_ids::DescribeSenderIdsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::describe_sender_ids::DescribeSenderIdsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_sender_ids::DescribeSenderIdsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_sender_ids::DescribeSenderIdsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_sender_ids::DescribeSenderIdsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_sender_ids::DescribeSenderIdsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spend_limits::DescribeSpendLimitsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spend_limits::DescribeSpendLimitsError, 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_spend_limits::DescribeSpendLimitsError> for Error {
fn from(err: crate::operation::describe_spend_limits::DescribeSpendLimitsError) -> Self {
match err {
crate::operation::describe_spend_limits::DescribeSpendLimitsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::describe_spend_limits::DescribeSpendLimitsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_spend_limits::DescribeSpendLimitsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_spend_limits::DescribeSpendLimitsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_spend_limits::DescribeSpendLimitsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError,
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_verified_destination_numbers::DescribeVerifiedDestinationNumbersError> for Error {
fn from(err: crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError) -> Self {
match err {
crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError,
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::disassociate_origination_identity::DisassociateOriginationIdentityError> for Error {
fn from(err: crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError) -> Self {
match err {
crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError,
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::disassociate_protect_configuration::DisassociateProtectConfigurationError> for Error {
fn from(err: crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError) -> Self {
match err {
crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::discard_registration_version::DiscardRegistrationVersionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::discard_registration_version::DiscardRegistrationVersionError, 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::discard_registration_version::DiscardRegistrationVersionError> for Error {
fn from(err: crate::operation::discard_registration_version::DiscardRegistrationVersionError) -> Self {
match err {
crate::operation::discard_registration_version::DiscardRegistrationVersionError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::discard_registration_version::DiscardRegistrationVersionError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::discard_registration_version::DiscardRegistrationVersionError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::discard_registration_version::DiscardRegistrationVersionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::discard_registration_version::DiscardRegistrationVersionError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::discard_registration_version::DiscardRegistrationVersionError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::discard_registration_version::DiscardRegistrationVersionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError,
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_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError> for Error {
fn from(err: crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError) -> Self {
match err {
crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::AccessDeniedException(
inner,
) => Error::AccessDeniedException(inner),
crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::InternalServerException(
inner,
) => Error::InternalServerException(inner),
crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, 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_resource_policy::GetResourcePolicyError> for Error {
fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
match err {
crate::operation::get_resource_policy::GetResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_resource_policy::GetResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_resource_policy::GetResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_resource_policy::GetResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError, 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_available_phone_numbers::ListAvailablePhoneNumbersError> for Error {
fn from(err: crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError) -> Self {
match err {
crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notify_countries::ListNotifyCountriesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notify_countries::ListNotifyCountriesError, 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_notify_countries::ListNotifyCountriesError> for Error {
fn from(err: crate::operation::list_notify_countries::ListNotifyCountriesError) -> Self {
match err {
crate::operation::list_notify_countries::ListNotifyCountriesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_notify_countries::ListNotifyCountriesError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_notify_countries::ListNotifyCountriesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_notify_countries::ListNotifyCountriesError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_notify_countries::ListNotifyCountriesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError, R>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError,
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_pool_origination_identities::ListPoolOriginationIdentitiesError> for Error {
fn from(err: crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError) -> Self {
match err {
crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError,
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_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError> for Error {
fn from(
err: crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError,
) -> Self {
match err {
crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_registration_associations::ListRegistrationAssociationsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_registration_associations::ListRegistrationAssociationsError,
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_registration_associations::ListRegistrationAssociationsError> for Error {
fn from(err: crate::operation::list_registration_associations::ListRegistrationAssociationsError) -> Self {
match err {
crate::operation::list_registration_associations::ListRegistrationAssociationsError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::list_registration_associations::ListRegistrationAssociationsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_registration_associations::ListRegistrationAssociationsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_registration_associations::ListRegistrationAssociationsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_registration_associations::ListRegistrationAssociationsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_registration_associations::ListRegistrationAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, 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_tags_for_resource::ListTagsForResourceError> for Error {
fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
match err {
crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_keyword::PutKeywordError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_keyword::PutKeywordError, 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_keyword::PutKeywordError> for Error {
fn from(err: crate::operation::put_keyword::PutKeywordError) -> Self {
match err {
crate::operation::put_keyword::PutKeywordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::put_keyword::PutKeywordError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::put_keyword::PutKeywordError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::put_keyword::PutKeywordError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::put_keyword::PutKeywordError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::put_keyword::PutKeywordError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::put_keyword::PutKeywordError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::put_keyword::PutKeywordError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_message_feedback::PutMessageFeedbackError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_message_feedback::PutMessageFeedbackError, 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_message_feedback::PutMessageFeedbackError> for Error {
fn from(err: crate::operation::put_message_feedback::PutMessageFeedbackError) -> Self {
match err {
crate::operation::put_message_feedback::PutMessageFeedbackError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::put_message_feedback::PutMessageFeedbackError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::put_message_feedback::PutMessageFeedbackError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::put_message_feedback::PutMessageFeedbackError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::put_message_feedback::PutMessageFeedbackError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::put_message_feedback::PutMessageFeedbackError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_opted_out_number::PutOptedOutNumberError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_opted_out_number::PutOptedOutNumberError, 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_opted_out_number::PutOptedOutNumberError> for Error {
fn from(err: crate::operation::put_opted_out_number::PutOptedOutNumberError) -> Self {
match err {
crate::operation::put_opted_out_number::PutOptedOutNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::put_opted_out_number::PutOptedOutNumberError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::put_opted_out_number::PutOptedOutNumberError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::put_opted_out_number::PutOptedOutNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::put_opted_out_number::PutOptedOutNumberError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::put_opted_out_number::PutOptedOutNumberError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError,
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_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError> for Error {
fn from(err: crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError) -> Self {
match err {
crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_registration_field_value::PutRegistrationFieldValueError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_registration_field_value::PutRegistrationFieldValueError, 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_registration_field_value::PutRegistrationFieldValueError> for Error {
fn from(err: crate::operation::put_registration_field_value::PutRegistrationFieldValueError) -> Self {
match err {
crate::operation::put_registration_field_value::PutRegistrationFieldValueError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::put_registration_field_value::PutRegistrationFieldValueError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::put_registration_field_value::PutRegistrationFieldValueError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::put_registration_field_value::PutRegistrationFieldValueError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::put_registration_field_value::PutRegistrationFieldValueError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::put_registration_field_value::PutRegistrationFieldValueError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::put_registration_field_value::PutRegistrationFieldValueError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, 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_resource_policy::PutResourcePolicyError> for Error {
fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
match err {
crate::operation::put_resource_policy::PutResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::put_resource_policy::PutResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_phone_number::ReleasePhoneNumberError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_phone_number::ReleasePhoneNumberError, 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::release_phone_number::ReleasePhoneNumberError> for Error {
fn from(err: crate::operation::release_phone_number::ReleasePhoneNumberError) -> Self {
match err {
crate::operation::release_phone_number::ReleasePhoneNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::release_phone_number::ReleasePhoneNumberError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::release_phone_number::ReleasePhoneNumberError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::release_phone_number::ReleasePhoneNumberError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::release_phone_number::ReleasePhoneNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::release_phone_number::ReleasePhoneNumberError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::release_phone_number::ReleasePhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_sender_id::ReleaseSenderIdError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_sender_id::ReleaseSenderIdError, 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::release_sender_id::ReleaseSenderIdError> for Error {
fn from(err: crate::operation::release_sender_id::ReleaseSenderIdError) -> Self {
match err {
crate::operation::release_sender_id::ReleaseSenderIdError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::release_sender_id::ReleaseSenderIdError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::release_sender_id::ReleaseSenderIdError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::release_sender_id::ReleaseSenderIdError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::release_sender_id::ReleaseSenderIdError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::release_sender_id::ReleaseSenderIdError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::release_sender_id::ReleaseSenderIdError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_phone_number::RequestPhoneNumberError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_phone_number::RequestPhoneNumberError, 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::request_phone_number::RequestPhoneNumberError> for Error {
fn from(err: crate::operation::request_phone_number::RequestPhoneNumberError) -> Self {
match err {
crate::operation::request_phone_number::RequestPhoneNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::request_phone_number::RequestPhoneNumberError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::request_phone_number::RequestPhoneNumberError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::request_phone_number::RequestPhoneNumberError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::request_phone_number::RequestPhoneNumberError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::request_phone_number::RequestPhoneNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::request_phone_number::RequestPhoneNumberError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::request_phone_number::RequestPhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_sender_id::RequestSenderIdError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_sender_id::RequestSenderIdError, 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::request_sender_id::RequestSenderIdError> for Error {
fn from(err: crate::operation::request_sender_id::RequestSenderIdError) -> Self {
match err {
crate::operation::request_sender_id::RequestSenderIdError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::request_sender_id::RequestSenderIdError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::request_sender_id::RequestSenderIdError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::request_sender_id::RequestSenderIdError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::request_sender_id::RequestSenderIdError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::request_sender_id::RequestSenderIdError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::request_sender_id::RequestSenderIdError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError,
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_destination_number_verification_code::SendDestinationNumberVerificationCodeError> for Error {
fn from(err: crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError) -> Self {
match err {
crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_media_message::SendMediaMessageError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_media_message::SendMediaMessageError, 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_media_message::SendMediaMessageError> for Error {
fn from(err: crate::operation::send_media_message::SendMediaMessageError) -> Self {
match err {
crate::operation::send_media_message::SendMediaMessageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::send_media_message::SendMediaMessageError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::send_media_message::SendMediaMessageError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::send_media_message::SendMediaMessageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::send_media_message::SendMediaMessageError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::send_media_message::SendMediaMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::send_media_message::SendMediaMessageError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::send_media_message::SendMediaMessageError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_notify_text_message::SendNotifyTextMessageError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_notify_text_message::SendNotifyTextMessageError, 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_notify_text_message::SendNotifyTextMessageError> for Error {
fn from(err: crate::operation::send_notify_text_message::SendNotifyTextMessageError) -> Self {
match err {
crate::operation::send_notify_text_message::SendNotifyTextMessageError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::send_notify_text_message::SendNotifyTextMessageError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::send_notify_text_message::SendNotifyTextMessageError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::send_notify_text_message::SendNotifyTextMessageError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::send_notify_text_message::SendNotifyTextMessageError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::send_notify_text_message::SendNotifyTextMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::send_notify_text_message::SendNotifyTextMessageError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::send_notify_text_message::SendNotifyTextMessageError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError, 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_notify_voice_message::SendNotifyVoiceMessageError> for Error {
fn from(err: crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError) -> Self {
match err {
crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_rcs_message::SendRcsMessageError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_rcs_message::SendRcsMessageError, 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_rcs_message::SendRcsMessageError> for Error {
fn from(err: crate::operation::send_rcs_message::SendRcsMessageError) -> Self {
match err {
crate::operation::send_rcs_message::SendRcsMessageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::send_rcs_message::SendRcsMessageError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::send_rcs_message::SendRcsMessageError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::send_rcs_message::SendRcsMessageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::send_rcs_message::SendRcsMessageError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::send_rcs_message::SendRcsMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::send_rcs_message::SendRcsMessageError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::send_rcs_message::SendRcsMessageError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_text_message::SendTextMessageError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_text_message::SendTextMessageError, 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_text_message::SendTextMessageError> for Error {
fn from(err: crate::operation::send_text_message::SendTextMessageError) -> Self {
match err {
crate::operation::send_text_message::SendTextMessageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::send_text_message::SendTextMessageError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::send_text_message::SendTextMessageError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::send_text_message::SendTextMessageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::send_text_message::SendTextMessageError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::send_text_message::SendTextMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::send_text_message::SendTextMessageError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::send_text_message::SendTextMessageError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_voice_message::SendVoiceMessageError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_voice_message::SendVoiceMessageError, 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_voice_message::SendVoiceMessageError> for Error {
fn from(err: crate::operation::send_voice_message::SendVoiceMessageError) -> Self {
match err {
crate::operation::send_voice_message::SendVoiceMessageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::send_voice_message::SendVoiceMessageError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::send_voice_message::SendVoiceMessageError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::send_voice_message::SendVoiceMessageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::send_voice_message::SendVoiceMessageError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::send_voice_message::SendVoiceMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::send_voice_message::SendVoiceMessageError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::send_voice_message::SendVoiceMessageError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError,
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_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError> for Error {
fn from(err: crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError) -> Self {
match err {
crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::InternalServerException(
inner,
) => Error::InternalServerException(inner),
crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError,
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_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError> for Error {
fn from(err: crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError) -> Self {
match err {
crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_default_message_type::SetDefaultMessageTypeError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_default_message_type::SetDefaultMessageTypeError, 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_default_message_type::SetDefaultMessageTypeError> for Error {
fn from(err: crate::operation::set_default_message_type::SetDefaultMessageTypeError) -> Self {
match err {
crate::operation::set_default_message_type::SetDefaultMessageTypeError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::set_default_message_type::SetDefaultMessageTypeError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::set_default_message_type::SetDefaultMessageTypeError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::set_default_message_type::SetDefaultMessageTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::set_default_message_type::SetDefaultMessageTypeError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::set_default_message_type::SetDefaultMessageTypeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_default_sender_id::SetDefaultSenderIdError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_default_sender_id::SetDefaultSenderIdError, 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_default_sender_id::SetDefaultSenderIdError> for Error {
fn from(err: crate::operation::set_default_sender_id::SetDefaultSenderIdError) -> Self {
match err {
crate::operation::set_default_sender_id::SetDefaultSenderIdError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::set_default_sender_id::SetDefaultSenderIdError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::set_default_sender_id::SetDefaultSenderIdError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::set_default_sender_id::SetDefaultSenderIdError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::set_default_sender_id::SetDefaultSenderIdError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::set_default_sender_id::SetDefaultSenderIdError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError,
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_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError> for Error {
fn from(err: crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError) -> Self {
match err {
crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError,
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_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError> for Error {
fn from(err: crate::operation::set_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError) -> Self {
match err {
crate::operation::set_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::set_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::set_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::set_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::set_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError,
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_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError> for Error {
fn from(err: crate::operation::set_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError) -> Self {
match err {
crate::operation::set_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::set_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::set_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::set_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::set_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError,
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_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError> for Error {
fn from(err: crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError) -> Self {
match err {
crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError,
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_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError> for Error {
fn from(err: crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError) -> Self {
match err {
crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::submit_registration_version::SubmitRegistrationVersionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::submit_registration_version::SubmitRegistrationVersionError, 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::submit_registration_version::SubmitRegistrationVersionError> for Error {
fn from(err: crate::operation::submit_registration_version::SubmitRegistrationVersionError) -> Self {
match err {
crate::operation::submit_registration_version::SubmitRegistrationVersionError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::submit_registration_version::SubmitRegistrationVersionError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::submit_registration_version::SubmitRegistrationVersionError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::submit_registration_version::SubmitRegistrationVersionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::submit_registration_version::SubmitRegistrationVersionError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::submit_registration_version::SubmitRegistrationVersionError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::submit_registration_version::SubmitRegistrationVersionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, 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::tag_resource::TagResourceError> for Error {
fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
match err {
crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, 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::untag_resource::UntagResourceError> for Error {
fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
match err {
crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_event_destination::UpdateEventDestinationError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_event_destination::UpdateEventDestinationError, 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_event_destination::UpdateEventDestinationError> for Error {
fn from(err: crate::operation::update_event_destination::UpdateEventDestinationError) -> Self {
match err {
crate::operation::update_event_destination::UpdateEventDestinationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::update_event_destination::UpdateEventDestinationError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_event_destination::UpdateEventDestinationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::update_event_destination::UpdateEventDestinationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_event_destination::UpdateEventDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_event_destination::UpdateEventDestinationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_event_destination::UpdateEventDestinationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notify_configuration::UpdateNotifyConfigurationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notify_configuration::UpdateNotifyConfigurationError, 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_notify_configuration::UpdateNotifyConfigurationError> for Error {
fn from(err: crate::operation::update_notify_configuration::UpdateNotifyConfigurationError) -> Self {
match err {
crate::operation::update_notify_configuration::UpdateNotifyConfigurationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::update_notify_configuration::UpdateNotifyConfigurationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::update_notify_configuration::UpdateNotifyConfigurationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::update_notify_configuration::UpdateNotifyConfigurationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_notify_configuration::UpdateNotifyConfigurationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_notify_configuration::UpdateNotifyConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::update_notify_configuration::UpdateNotifyConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_phone_number::UpdatePhoneNumberError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_phone_number::UpdatePhoneNumberError, 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_phone_number::UpdatePhoneNumberError> for Error {
fn from(err: crate::operation::update_phone_number::UpdatePhoneNumberError) -> Self {
match err {
crate::operation::update_phone_number::UpdatePhoneNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_phone_number::UpdatePhoneNumberError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_phone_number::UpdatePhoneNumberError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_phone_number::UpdatePhoneNumberError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_phone_number::UpdatePhoneNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_phone_number::UpdatePhoneNumberError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_phone_number::UpdatePhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pool::UpdatePoolError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pool::UpdatePoolError, 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_pool::UpdatePoolError> for Error {
fn from(err: crate::operation::update_pool::UpdatePoolError) -> Self {
match err {
crate::operation::update_pool::UpdatePoolError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_pool::UpdatePoolError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_pool::UpdatePoolError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_pool::UpdatePoolError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_pool::UpdatePoolError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_pool::UpdatePoolError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_pool::UpdatePoolError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_protect_configuration::UpdateProtectConfigurationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_protect_configuration::UpdateProtectConfigurationError, 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_protect_configuration::UpdateProtectConfigurationError> for Error {
fn from(err: crate::operation::update_protect_configuration::UpdateProtectConfigurationError) -> Self {
match err {
crate::operation::update_protect_configuration::UpdateProtectConfigurationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::update_protect_configuration::UpdateProtectConfigurationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::update_protect_configuration::UpdateProtectConfigurationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_protect_configuration::UpdateProtectConfigurationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_protect_configuration::UpdateProtectConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::update_protect_configuration::UpdateProtectConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError,
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_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError> for Error {
fn from(err: crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError) -> Self {
match err {
crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rcs_agent::UpdateRcsAgentError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rcs_agent::UpdateRcsAgentError, 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_rcs_agent::UpdateRcsAgentError> for Error {
fn from(err: crate::operation::update_rcs_agent::UpdateRcsAgentError) -> Self {
match err {
crate::operation::update_rcs_agent::UpdateRcsAgentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_rcs_agent::UpdateRcsAgentError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_rcs_agent::UpdateRcsAgentError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_rcs_agent::UpdateRcsAgentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_rcs_agent::UpdateRcsAgentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_rcs_agent::UpdateRcsAgentError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_rcs_agent::UpdateRcsAgentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_sender_id::UpdateSenderIdError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_sender_id::UpdateSenderIdError, 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_sender_id::UpdateSenderIdError> for Error {
fn from(err: crate::operation::update_sender_id::UpdateSenderIdError) -> Self {
match err {
crate::operation::update_sender_id::UpdateSenderIdError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_sender_id::UpdateSenderIdError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_sender_id::UpdateSenderIdError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_sender_id::UpdateSenderIdError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_sender_id::UpdateSenderIdError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_sender_id::UpdateSenderIdError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_destination_number::VerifyDestinationNumberError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_destination_number::VerifyDestinationNumberError, 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_destination_number::VerifyDestinationNumberError> for Error {
fn from(err: crate::operation::verify_destination_number::VerifyDestinationNumberError) -> Self {
match err {
crate::operation::verify_destination_number::VerifyDestinationNumberError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::verify_destination_number::VerifyDestinationNumberError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::verify_destination_number::VerifyDestinationNumberError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::verify_destination_number::VerifyDestinationNumberError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::verify_destination_number::VerifyDestinationNumberError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::verify_destination_number::VerifyDestinationNumberError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::verify_destination_number::VerifyDestinationNumberError::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::AccessDeniedException(inner) => inner.source(),
Error::ConflictException(inner) => inner.source(),
Error::InternalServerException(inner) => inner.source(),
Error::ResourceNotFoundException(inner) => inner.source(),
Error::ServiceQuotaExceededException(inner) => inner.source(),
Error::ThrottlingException(inner) => inner.source(),
Error::ValidationException(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::AccessDeniedException(e) => e.request_id(),
Self::ConflictException(e) => e.request_id(),
Self::InternalServerException(e) => e.request_id(),
Self::ResourceNotFoundException(e) => e.request_id(),
Self::ServiceQuotaExceededException(e) => e.request_id(),
Self::ThrottlingException(e) => e.request_id(),
Self::ValidationException(e) => e.request_id(),
Self::Unhandled(e) => e.meta.request_id(),
}
}
}