#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
DnssecLimitExceeded(crate::types::error::DnssecLimitExceeded),
DomainLimitExceeded(crate::types::error::DomainLimitExceeded),
DuplicateRequest(crate::types::error::DuplicateRequest),
InvalidInput(crate::types::error::InvalidInput),
OperationLimitExceeded(crate::types::error::OperationLimitExceeded),
TldRulesViolation(crate::types::error::TldRulesViolation),
UnsupportedTld(crate::types::error::UnsupportedTld),
#[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::DnssecLimitExceeded(inner) => inner.fmt(f),
Error::DomainLimitExceeded(inner) => inner.fmt(f),
Error::DuplicateRequest(inner) => inner.fmt(f),
Error::InvalidInput(inner) => inner.fmt(f),
Error::OperationLimitExceeded(inner) => inner.fmt(f),
Error::TldRulesViolation(inner) => inner.fmt(f),
Error::UnsupportedTld(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::DnssecLimitExceeded(inner) => inner.meta(),
Self::DomainLimitExceeded(inner) => inner.meta(),
Self::DuplicateRequest(inner) => inner.meta(),
Self::InvalidInput(inner) => inner.meta(),
Self::OperationLimitExceeded(inner) => inner.meta(),
Self::TldRulesViolation(inner) => inner.meta(),
Self::UnsupportedTld(inner) => inner.meta(),
Self::Unhandled(inner) => &inner.meta,
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::accept_domain_transfer_from_another_aws_account::AcceptDomainTransferFromAnotherAwsAccountError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::accept_domain_transfer_from_another_aws_account::AcceptDomainTransferFromAnotherAwsAccountError,
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::accept_domain_transfer_from_another_aws_account::AcceptDomainTransferFromAnotherAwsAccountError> for Error {
fn from(err: crate::operation::accept_domain_transfer_from_another_aws_account::AcceptDomainTransferFromAnotherAwsAccountError) -> Self {
match err {
crate::operation::accept_domain_transfer_from_another_aws_account::AcceptDomainTransferFromAnotherAwsAccountError::DomainLimitExceeded(inner) => Error::DomainLimitExceeded(inner),
crate::operation::accept_domain_transfer_from_another_aws_account::AcceptDomainTransferFromAnotherAwsAccountError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::accept_domain_transfer_from_another_aws_account::AcceptDomainTransferFromAnotherAwsAccountError::OperationLimitExceeded(inner) => Error::OperationLimitExceeded(inner),
crate::operation::accept_domain_transfer_from_another_aws_account::AcceptDomainTransferFromAnotherAwsAccountError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::accept_domain_transfer_from_another_aws_account::AcceptDomainTransferFromAnotherAwsAccountError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::associate_delegation_signer_to_domain::AssociateDelegationSignerToDomainError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::associate_delegation_signer_to_domain::AssociateDelegationSignerToDomainError,
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_delegation_signer_to_domain::AssociateDelegationSignerToDomainError> for Error {
fn from(err: crate::operation::associate_delegation_signer_to_domain::AssociateDelegationSignerToDomainError) -> Self {
match err {
crate::operation::associate_delegation_signer_to_domain::AssociateDelegationSignerToDomainError::DnssecLimitExceeded(inner) => {
Error::DnssecLimitExceeded(inner)
}
crate::operation::associate_delegation_signer_to_domain::AssociateDelegationSignerToDomainError::DuplicateRequest(inner) => {
Error::DuplicateRequest(inner)
}
crate::operation::associate_delegation_signer_to_domain::AssociateDelegationSignerToDomainError::InvalidInput(inner) => {
Error::InvalidInput(inner)
}
crate::operation::associate_delegation_signer_to_domain::AssociateDelegationSignerToDomainError::OperationLimitExceeded(inner) => {
Error::OperationLimitExceeded(inner)
}
crate::operation::associate_delegation_signer_to_domain::AssociateDelegationSignerToDomainError::TldRulesViolation(inner) => {
Error::TldRulesViolation(inner)
}
crate::operation::associate_delegation_signer_to_domain::AssociateDelegationSignerToDomainError::UnsupportedTld(inner) => {
Error::UnsupportedTld(inner)
}
crate::operation::associate_delegation_signer_to_domain::AssociateDelegationSignerToDomainError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::cancel_domain_transfer_to_another_aws_account::CancelDomainTransferToAnotherAwsAccountError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::cancel_domain_transfer_to_another_aws_account::CancelDomainTransferToAnotherAwsAccountError,
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::cancel_domain_transfer_to_another_aws_account::CancelDomainTransferToAnotherAwsAccountError> for Error {
fn from(err: crate::operation::cancel_domain_transfer_to_another_aws_account::CancelDomainTransferToAnotherAwsAccountError) -> Self {
match err {
crate::operation::cancel_domain_transfer_to_another_aws_account::CancelDomainTransferToAnotherAwsAccountError::InvalidInput(inner) => {
Error::InvalidInput(inner)
}
crate::operation::cancel_domain_transfer_to_another_aws_account::CancelDomainTransferToAnotherAwsAccountError::OperationLimitExceeded(
inner,
) => Error::OperationLimitExceeded(inner),
crate::operation::cancel_domain_transfer_to_another_aws_account::CancelDomainTransferToAnotherAwsAccountError::UnsupportedTld(inner) => {
Error::UnsupportedTld(inner)
}
crate::operation::cancel_domain_transfer_to_another_aws_account::CancelDomainTransferToAnotherAwsAccountError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::check_domain_availability::CheckDomainAvailabilityError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::check_domain_availability::CheckDomainAvailabilityError, 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::check_domain_availability::CheckDomainAvailabilityError> for Error {
fn from(err: crate::operation::check_domain_availability::CheckDomainAvailabilityError) -> Self {
match err {
crate::operation::check_domain_availability::CheckDomainAvailabilityError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::check_domain_availability::CheckDomainAvailabilityError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::check_domain_availability::CheckDomainAvailabilityError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::check_domain_transferability::CheckDomainTransferabilityError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::check_domain_transferability::CheckDomainTransferabilityError, 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::check_domain_transferability::CheckDomainTransferabilityError> for Error {
fn from(err: crate::operation::check_domain_transferability::CheckDomainTransferabilityError) -> Self {
match err {
crate::operation::check_domain_transferability::CheckDomainTransferabilityError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::check_domain_transferability::CheckDomainTransferabilityError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::check_domain_transferability::CheckDomainTransferabilityError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, 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_domain::DeleteDomainError> for Error {
fn from(err: crate::operation::delete_domain::DeleteDomainError) -> Self {
match err {
crate::operation::delete_domain::DeleteDomainError::DuplicateRequest(inner) => Error::DuplicateRequest(inner),
crate::operation::delete_domain::DeleteDomainError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::delete_domain::DeleteDomainError::TldRulesViolation(inner) => Error::TldRulesViolation(inner),
crate::operation::delete_domain::DeleteDomainError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::delete_domain::DeleteDomainError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags_for_domain::DeleteTagsForDomainError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags_for_domain::DeleteTagsForDomainError, 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_tags_for_domain::DeleteTagsForDomainError> for Error {
fn from(err: crate::operation::delete_tags_for_domain::DeleteTagsForDomainError) -> Self {
match err {
crate::operation::delete_tags_for_domain::DeleteTagsForDomainError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::delete_tags_for_domain::DeleteTagsForDomainError::OperationLimitExceeded(inner) => Error::OperationLimitExceeded(inner),
crate::operation::delete_tags_for_domain::DeleteTagsForDomainError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::delete_tags_for_domain::DeleteTagsForDomainError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_domain_auto_renew::DisableDomainAutoRenewError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_domain_auto_renew::DisableDomainAutoRenewError, 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::disable_domain_auto_renew::DisableDomainAutoRenewError> for Error {
fn from(err: crate::operation::disable_domain_auto_renew::DisableDomainAutoRenewError) -> Self {
match err {
crate::operation::disable_domain_auto_renew::DisableDomainAutoRenewError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::disable_domain_auto_renew::DisableDomainAutoRenewError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::disable_domain_auto_renew::DisableDomainAutoRenewError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_domain_transfer_lock::DisableDomainTransferLockError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_domain_transfer_lock::DisableDomainTransferLockError, 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::disable_domain_transfer_lock::DisableDomainTransferLockError> for Error {
fn from(err: crate::operation::disable_domain_transfer_lock::DisableDomainTransferLockError) -> Self {
match err {
crate::operation::disable_domain_transfer_lock::DisableDomainTransferLockError::DuplicateRequest(inner) => Error::DuplicateRequest(inner),
crate::operation::disable_domain_transfer_lock::DisableDomainTransferLockError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::disable_domain_transfer_lock::DisableDomainTransferLockError::OperationLimitExceeded(inner) => {
Error::OperationLimitExceeded(inner)
}
crate::operation::disable_domain_transfer_lock::DisableDomainTransferLockError::TldRulesViolation(inner) => {
Error::TldRulesViolation(inner)
}
crate::operation::disable_domain_transfer_lock::DisableDomainTransferLockError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::disable_domain_transfer_lock::DisableDomainTransferLockError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_delegation_signer_from_domain::DisassociateDelegationSignerFromDomainError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::disassociate_delegation_signer_from_domain::DisassociateDelegationSignerFromDomainError,
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_delegation_signer_from_domain::DisassociateDelegationSignerFromDomainError> for Error {
fn from(err: crate::operation::disassociate_delegation_signer_from_domain::DisassociateDelegationSignerFromDomainError) -> Self {
match err {
crate::operation::disassociate_delegation_signer_from_domain::DisassociateDelegationSignerFromDomainError::DuplicateRequest(inner) => {
Error::DuplicateRequest(inner)
}
crate::operation::disassociate_delegation_signer_from_domain::DisassociateDelegationSignerFromDomainError::InvalidInput(inner) => {
Error::InvalidInput(inner)
}
crate::operation::disassociate_delegation_signer_from_domain::DisassociateDelegationSignerFromDomainError::OperationLimitExceeded(
inner,
) => Error::OperationLimitExceeded(inner),
crate::operation::disassociate_delegation_signer_from_domain::DisassociateDelegationSignerFromDomainError::TldRulesViolation(inner) => {
Error::TldRulesViolation(inner)
}
crate::operation::disassociate_delegation_signer_from_domain::DisassociateDelegationSignerFromDomainError::UnsupportedTld(inner) => {
Error::UnsupportedTld(inner)
}
crate::operation::disassociate_delegation_signer_from_domain::DisassociateDelegationSignerFromDomainError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_domain_auto_renew::EnableDomainAutoRenewError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_domain_auto_renew::EnableDomainAutoRenewError, 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::enable_domain_auto_renew::EnableDomainAutoRenewError> for Error {
fn from(err: crate::operation::enable_domain_auto_renew::EnableDomainAutoRenewError) -> Self {
match err {
crate::operation::enable_domain_auto_renew::EnableDomainAutoRenewError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::enable_domain_auto_renew::EnableDomainAutoRenewError::TldRulesViolation(inner) => Error::TldRulesViolation(inner),
crate::operation::enable_domain_auto_renew::EnableDomainAutoRenewError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::enable_domain_auto_renew::EnableDomainAutoRenewError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_domain_transfer_lock::EnableDomainTransferLockError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_domain_transfer_lock::EnableDomainTransferLockError, 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::enable_domain_transfer_lock::EnableDomainTransferLockError> for Error {
fn from(err: crate::operation::enable_domain_transfer_lock::EnableDomainTransferLockError) -> Self {
match err {
crate::operation::enable_domain_transfer_lock::EnableDomainTransferLockError::DuplicateRequest(inner) => Error::DuplicateRequest(inner),
crate::operation::enable_domain_transfer_lock::EnableDomainTransferLockError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::enable_domain_transfer_lock::EnableDomainTransferLockError::OperationLimitExceeded(inner) => {
Error::OperationLimitExceeded(inner)
}
crate::operation::enable_domain_transfer_lock::EnableDomainTransferLockError::TldRulesViolation(inner) => Error::TldRulesViolation(inner),
crate::operation::enable_domain_transfer_lock::EnableDomainTransferLockError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::enable_domain_transfer_lock::EnableDomainTransferLockError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_contact_reachability_status::GetContactReachabilityStatusError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::get_contact_reachability_status::GetContactReachabilityStatusError,
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_contact_reachability_status::GetContactReachabilityStatusError> for Error {
fn from(err: crate::operation::get_contact_reachability_status::GetContactReachabilityStatusError) -> Self {
match err {
crate::operation::get_contact_reachability_status::GetContactReachabilityStatusError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::get_contact_reachability_status::GetContactReachabilityStatusError::OperationLimitExceeded(inner) => {
Error::OperationLimitExceeded(inner)
}
crate::operation::get_contact_reachability_status::GetContactReachabilityStatusError::UnsupportedTld(inner) => {
Error::UnsupportedTld(inner)
}
crate::operation::get_contact_reachability_status::GetContactReachabilityStatusError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_detail::GetDomainDetailError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_detail::GetDomainDetailError, 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_domain_detail::GetDomainDetailError> for Error {
fn from(err: crate::operation::get_domain_detail::GetDomainDetailError) -> Self {
match err {
crate::operation::get_domain_detail::GetDomainDetailError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::get_domain_detail::GetDomainDetailError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::get_domain_detail::GetDomainDetailError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_suggestions::GetDomainSuggestionsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_suggestions::GetDomainSuggestionsError, 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_domain_suggestions::GetDomainSuggestionsError> for Error {
fn from(err: crate::operation::get_domain_suggestions::GetDomainSuggestionsError) -> Self {
match err {
crate::operation::get_domain_suggestions::GetDomainSuggestionsError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::get_domain_suggestions::GetDomainSuggestionsError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::get_domain_suggestions::GetDomainSuggestionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_operation_detail::GetOperationDetailError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_operation_detail::GetOperationDetailError, 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_operation_detail::GetOperationDetailError> for Error {
fn from(err: crate::operation::get_operation_detail::GetOperationDetailError) -> Self {
match err {
crate::operation::get_operation_detail::GetOperationDetailError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::get_operation_detail::GetOperationDetailError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, 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_domains::ListDomainsError> for Error {
fn from(err: crate::operation::list_domains::ListDomainsError) -> Self {
match err {
crate::operation::list_domains::ListDomainsError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::list_domains::ListDomainsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_operations::ListOperationsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_operations::ListOperationsError, 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_operations::ListOperationsError> for Error {
fn from(err: crate::operation::list_operations::ListOperationsError) -> Self {
match err {
crate::operation::list_operations::ListOperationsError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::list_operations::ListOperationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_prices::ListPricesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_prices::ListPricesError, 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_prices::ListPricesError> for Error {
fn from(err: crate::operation::list_prices::ListPricesError) -> Self {
match err {
crate::operation::list_prices::ListPricesError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::list_prices::ListPricesError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::list_prices::ListPricesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_domain::ListTagsForDomainError, 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_domain::ListTagsForDomainError, 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_domain::ListTagsForDomainError> for Error {
fn from(err: crate::operation::list_tags_for_domain::ListTagsForDomainError) -> Self {
match err {
crate::operation::list_tags_for_domain::ListTagsForDomainError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::list_tags_for_domain::ListTagsForDomainError::OperationLimitExceeded(inner) => Error::OperationLimitExceeded(inner),
crate::operation::list_tags_for_domain::ListTagsForDomainError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::list_tags_for_domain::ListTagsForDomainError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::push_domain::PushDomainError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::push_domain::PushDomainError, 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::push_domain::PushDomainError> for Error {
fn from(err: crate::operation::push_domain::PushDomainError) -> Self {
match err {
crate::operation::push_domain::PushDomainError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::push_domain::PushDomainError::OperationLimitExceeded(inner) => Error::OperationLimitExceeded(inner),
crate::operation::push_domain::PushDomainError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::push_domain::PushDomainError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_domain::RegisterDomainError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_domain::RegisterDomainError, 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::register_domain::RegisterDomainError> for Error {
fn from(err: crate::operation::register_domain::RegisterDomainError) -> Self {
match err {
crate::operation::register_domain::RegisterDomainError::DomainLimitExceeded(inner) => Error::DomainLimitExceeded(inner),
crate::operation::register_domain::RegisterDomainError::DuplicateRequest(inner) => Error::DuplicateRequest(inner),
crate::operation::register_domain::RegisterDomainError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::register_domain::RegisterDomainError::OperationLimitExceeded(inner) => Error::OperationLimitExceeded(inner),
crate::operation::register_domain::RegisterDomainError::TldRulesViolation(inner) => Error::TldRulesViolation(inner),
crate::operation::register_domain::RegisterDomainError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::register_domain::RegisterDomainError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::reject_domain_transfer_from_another_aws_account::RejectDomainTransferFromAnotherAwsAccountError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::reject_domain_transfer_from_another_aws_account::RejectDomainTransferFromAnotherAwsAccountError,
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::reject_domain_transfer_from_another_aws_account::RejectDomainTransferFromAnotherAwsAccountError> for Error {
fn from(err: crate::operation::reject_domain_transfer_from_another_aws_account::RejectDomainTransferFromAnotherAwsAccountError) -> Self {
match err {
crate::operation::reject_domain_transfer_from_another_aws_account::RejectDomainTransferFromAnotherAwsAccountError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::reject_domain_transfer_from_another_aws_account::RejectDomainTransferFromAnotherAwsAccountError::OperationLimitExceeded(inner) => Error::OperationLimitExceeded(inner),
crate::operation::reject_domain_transfer_from_another_aws_account::RejectDomainTransferFromAnotherAwsAccountError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::reject_domain_transfer_from_another_aws_account::RejectDomainTransferFromAnotherAwsAccountError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::renew_domain::RenewDomainError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::renew_domain::RenewDomainError, 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::renew_domain::RenewDomainError> for Error {
fn from(err: crate::operation::renew_domain::RenewDomainError) -> Self {
match err {
crate::operation::renew_domain::RenewDomainError::DuplicateRequest(inner) => Error::DuplicateRequest(inner),
crate::operation::renew_domain::RenewDomainError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::renew_domain::RenewDomainError::OperationLimitExceeded(inner) => Error::OperationLimitExceeded(inner),
crate::operation::renew_domain::RenewDomainError::TldRulesViolation(inner) => Error::TldRulesViolation(inner),
crate::operation::renew_domain::RenewDomainError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::renew_domain::RenewDomainError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::resend_contact_reachability_email::ResendContactReachabilityEmailError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::resend_contact_reachability_email::ResendContactReachabilityEmailError,
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::resend_contact_reachability_email::ResendContactReachabilityEmailError> for Error {
fn from(err: crate::operation::resend_contact_reachability_email::ResendContactReachabilityEmailError) -> Self {
match err {
crate::operation::resend_contact_reachability_email::ResendContactReachabilityEmailError::InvalidInput(inner) => {
Error::InvalidInput(inner)
}
crate::operation::resend_contact_reachability_email::ResendContactReachabilityEmailError::OperationLimitExceeded(inner) => {
Error::OperationLimitExceeded(inner)
}
crate::operation::resend_contact_reachability_email::ResendContactReachabilityEmailError::UnsupportedTld(inner) => {
Error::UnsupportedTld(inner)
}
crate::operation::resend_contact_reachability_email::ResendContactReachabilityEmailError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resend_operation_authorization::ResendOperationAuthorizationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::resend_operation_authorization::ResendOperationAuthorizationError,
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::resend_operation_authorization::ResendOperationAuthorizationError> for Error {
fn from(err: crate::operation::resend_operation_authorization::ResendOperationAuthorizationError) -> Self {
match err {
crate::operation::resend_operation_authorization::ResendOperationAuthorizationError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::resend_operation_authorization::ResendOperationAuthorizationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retrieve_domain_auth_code::RetrieveDomainAuthCodeError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retrieve_domain_auth_code::RetrieveDomainAuthCodeError, 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::retrieve_domain_auth_code::RetrieveDomainAuthCodeError> for Error {
fn from(err: crate::operation::retrieve_domain_auth_code::RetrieveDomainAuthCodeError) -> Self {
match err {
crate::operation::retrieve_domain_auth_code::RetrieveDomainAuthCodeError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::retrieve_domain_auth_code::RetrieveDomainAuthCodeError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::retrieve_domain_auth_code::RetrieveDomainAuthCodeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::transfer_domain::TransferDomainError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::transfer_domain::TransferDomainError, 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::transfer_domain::TransferDomainError> for Error {
fn from(err: crate::operation::transfer_domain::TransferDomainError) -> Self {
match err {
crate::operation::transfer_domain::TransferDomainError::DomainLimitExceeded(inner) => Error::DomainLimitExceeded(inner),
crate::operation::transfer_domain::TransferDomainError::DuplicateRequest(inner) => Error::DuplicateRequest(inner),
crate::operation::transfer_domain::TransferDomainError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::transfer_domain::TransferDomainError::OperationLimitExceeded(inner) => Error::OperationLimitExceeded(inner),
crate::operation::transfer_domain::TransferDomainError::TldRulesViolation(inner) => Error::TldRulesViolation(inner),
crate::operation::transfer_domain::TransferDomainError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::transfer_domain::TransferDomainError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::transfer_domain_to_another_aws_account::TransferDomainToAnotherAwsAccountError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::transfer_domain_to_another_aws_account::TransferDomainToAnotherAwsAccountError,
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::transfer_domain_to_another_aws_account::TransferDomainToAnotherAwsAccountError> for Error {
fn from(err: crate::operation::transfer_domain_to_another_aws_account::TransferDomainToAnotherAwsAccountError) -> Self {
match err {
crate::operation::transfer_domain_to_another_aws_account::TransferDomainToAnotherAwsAccountError::DuplicateRequest(inner) => {
Error::DuplicateRequest(inner)
}
crate::operation::transfer_domain_to_another_aws_account::TransferDomainToAnotherAwsAccountError::InvalidInput(inner) => {
Error::InvalidInput(inner)
}
crate::operation::transfer_domain_to_another_aws_account::TransferDomainToAnotherAwsAccountError::OperationLimitExceeded(inner) => {
Error::OperationLimitExceeded(inner)
}
crate::operation::transfer_domain_to_another_aws_account::TransferDomainToAnotherAwsAccountError::UnsupportedTld(inner) => {
Error::UnsupportedTld(inner)
}
crate::operation::transfer_domain_to_another_aws_account::TransferDomainToAnotherAwsAccountError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain_contact::UpdateDomainContactError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain_contact::UpdateDomainContactError, 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_domain_contact::UpdateDomainContactError> for Error {
fn from(err: crate::operation::update_domain_contact::UpdateDomainContactError) -> Self {
match err {
crate::operation::update_domain_contact::UpdateDomainContactError::DuplicateRequest(inner) => Error::DuplicateRequest(inner),
crate::operation::update_domain_contact::UpdateDomainContactError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::update_domain_contact::UpdateDomainContactError::OperationLimitExceeded(inner) => Error::OperationLimitExceeded(inner),
crate::operation::update_domain_contact::UpdateDomainContactError::TldRulesViolation(inner) => Error::TldRulesViolation(inner),
crate::operation::update_domain_contact::UpdateDomainContactError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::update_domain_contact::UpdateDomainContactError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain_contact_privacy::UpdateDomainContactPrivacyError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain_contact_privacy::UpdateDomainContactPrivacyError, 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_domain_contact_privacy::UpdateDomainContactPrivacyError> for Error {
fn from(err: crate::operation::update_domain_contact_privacy::UpdateDomainContactPrivacyError) -> Self {
match err {
crate::operation::update_domain_contact_privacy::UpdateDomainContactPrivacyError::DuplicateRequest(inner) => {
Error::DuplicateRequest(inner)
}
crate::operation::update_domain_contact_privacy::UpdateDomainContactPrivacyError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::update_domain_contact_privacy::UpdateDomainContactPrivacyError::OperationLimitExceeded(inner) => {
Error::OperationLimitExceeded(inner)
}
crate::operation::update_domain_contact_privacy::UpdateDomainContactPrivacyError::TldRulesViolation(inner) => {
Error::TldRulesViolation(inner)
}
crate::operation::update_domain_contact_privacy::UpdateDomainContactPrivacyError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::update_domain_contact_privacy::UpdateDomainContactPrivacyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain_nameservers::UpdateDomainNameserversError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain_nameservers::UpdateDomainNameserversError, 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_domain_nameservers::UpdateDomainNameserversError> for Error {
fn from(err: crate::operation::update_domain_nameservers::UpdateDomainNameserversError) -> Self {
match err {
crate::operation::update_domain_nameservers::UpdateDomainNameserversError::DuplicateRequest(inner) => Error::DuplicateRequest(inner),
crate::operation::update_domain_nameservers::UpdateDomainNameserversError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::update_domain_nameservers::UpdateDomainNameserversError::OperationLimitExceeded(inner) => {
Error::OperationLimitExceeded(inner)
}
crate::operation::update_domain_nameservers::UpdateDomainNameserversError::TldRulesViolation(inner) => Error::TldRulesViolation(inner),
crate::operation::update_domain_nameservers::UpdateDomainNameserversError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::update_domain_nameservers::UpdateDomainNameserversError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_tags_for_domain::UpdateTagsForDomainError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_tags_for_domain::UpdateTagsForDomainError, 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_tags_for_domain::UpdateTagsForDomainError> for Error {
fn from(err: crate::operation::update_tags_for_domain::UpdateTagsForDomainError) -> Self {
match err {
crate::operation::update_tags_for_domain::UpdateTagsForDomainError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::update_tags_for_domain::UpdateTagsForDomainError::OperationLimitExceeded(inner) => Error::OperationLimitExceeded(inner),
crate::operation::update_tags_for_domain::UpdateTagsForDomainError::UnsupportedTld(inner) => Error::UnsupportedTld(inner),
crate::operation::update_tags_for_domain::UpdateTagsForDomainError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::view_billing::ViewBillingError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::view_billing::ViewBillingError, 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::view_billing::ViewBillingError> for Error {
fn from(err: crate::operation::view_billing::ViewBillingError) -> Self {
match err {
crate::operation::view_billing::ViewBillingError::InvalidInput(inner) => Error::InvalidInput(inner),
crate::operation::view_billing::ViewBillingError::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::DnssecLimitExceeded(inner) => inner.source(),
Error::DomainLimitExceeded(inner) => inner.source(),
Error::DuplicateRequest(inner) => inner.source(),
Error::InvalidInput(inner) => inner.source(),
Error::OperationLimitExceeded(inner) => inner.source(),
Error::TldRulesViolation(inner) => inner.source(),
Error::UnsupportedTld(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::DnssecLimitExceeded(e) => e.request_id(),
Self::DomainLimitExceeded(e) => e.request_id(),
Self::DuplicateRequest(e) => e.request_id(),
Self::InvalidInput(e) => e.request_id(),
Self::OperationLimitExceeded(e) => e.request_id(),
Self::TldRulesViolation(e) => e.request_id(),
Self::UnsupportedTld(e) => e.request_id(),
Self::Unhandled(e) => e.meta.request_id(),
}
}
}