#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum Error {
InternalErrorException(crate::error::InternalErrorException),
InvalidInputException(crate::error::InvalidInputException),
InvalidOperationException(crate::error::InvalidOperationException),
InvalidTypeException(crate::error::InvalidTypeException),
LimitExceededException(crate::error::LimitExceededException),
ResourceNotFoundException(crate::error::ResourceNotFoundException),
Unhandled(Box<dyn std::error::Error + Send + Sync + 'static>),
}
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::InternalErrorException(inner) => inner.fmt(f),
Error::InvalidInputException(inner) => inner.fmt(f),
Error::InvalidOperationException(inner) => inner.fmt(f),
Error::InvalidTypeException(inner) => inner.fmt(f),
Error::LimitExceededException(inner) => inner.fmt(f),
Error::ResourceNotFoundException(inner) => inner.fmt(f),
Error::Unhandled(inner) => inner.fmt(f),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::AssociateAdminAccountError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::AssociateAdminAccountError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::AssociateAdminAccountErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::AssociateAdminAccountErrorKind::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::error::AssociateAdminAccountErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::AssociateAdminAccountErrorKind::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::error::AssociateAdminAccountErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::AssociateAdminAccountErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteAppsListError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::DeleteAppsListError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DeleteAppsListErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::DeleteAppsListErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::DeleteAppsListErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::DeleteAppsListErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteNotificationChannelError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::DeleteNotificationChannelError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DeleteNotificationChannelErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::DeleteNotificationChannelErrorKind::InvalidOperationException(
inner,
) => Error::InvalidOperationException(inner),
crate::error::DeleteNotificationChannelErrorKind::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::error::DeleteNotificationChannelErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeletePolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::DeletePolicyError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DeletePolicyErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::DeletePolicyErrorKind::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::error::DeletePolicyErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::DeletePolicyErrorKind::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::error::DeletePolicyErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::DeletePolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteProtocolsListError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::DeleteProtocolsListError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DeleteProtocolsListErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::DeleteProtocolsListErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::DeleteProtocolsListErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::DeleteProtocolsListErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DisassociateAdminAccountError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::DisassociateAdminAccountError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::DisassociateAdminAccountErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::DisassociateAdminAccountErrorKind::InvalidOperationException(
inner,
) => Error::InvalidOperationException(inner),
crate::error::DisassociateAdminAccountErrorKind::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::error::DisassociateAdminAccountErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetAdminAccountError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::GetAdminAccountError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetAdminAccountErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::GetAdminAccountErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::GetAdminAccountErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::GetAdminAccountErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetAppsListError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::GetAppsListError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetAppsListErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::GetAppsListErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::GetAppsListErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::GetAppsListErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetComplianceDetailError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::GetComplianceDetailError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetComplianceDetailErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::GetComplianceDetailErrorKind::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::error::GetComplianceDetailErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::GetComplianceDetailErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::GetComplianceDetailErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetNotificationChannelError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::GetNotificationChannelError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetNotificationChannelErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::GetNotificationChannelErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::GetNotificationChannelErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::GetNotificationChannelErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetPolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::GetPolicyError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetPolicyErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::GetPolicyErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::GetPolicyErrorKind::InvalidTypeException(inner) => {
Error::InvalidTypeException(inner)
}
crate::error::GetPolicyErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::GetPolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetProtectionStatusError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::GetProtectionStatusError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetProtectionStatusErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::GetProtectionStatusErrorKind::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::error::GetProtectionStatusErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::GetProtectionStatusErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetProtocolsListError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::GetProtocolsListError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetProtocolsListErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::GetProtocolsListErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::GetProtocolsListErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::GetProtocolsListErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetViolationDetailsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::GetViolationDetailsError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::GetViolationDetailsErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::GetViolationDetailsErrorKind::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::error::GetViolationDetailsErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::GetViolationDetailsErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListAppsListsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::ListAppsListsError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListAppsListsErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::ListAppsListsErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::ListAppsListsErrorKind::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::error::ListAppsListsErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::ListAppsListsErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListComplianceStatusError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListComplianceStatusError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListComplianceStatusErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::ListComplianceStatusErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::ListComplianceStatusErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListMemberAccountsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListMemberAccountsError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListMemberAccountsErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::ListMemberAccountsErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::ListMemberAccountsErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListPoliciesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::ListPoliciesError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListPoliciesErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::ListPoliciesErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::ListPoliciesErrorKind::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::error::ListPoliciesErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::ListPoliciesErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListProtocolsListsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListProtocolsListsError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListProtocolsListsErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::ListProtocolsListsErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::ListProtocolsListsErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::ListProtocolsListsErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListTagsForResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListTagsForResourceError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::ListTagsForResourceErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::ListTagsForResourceErrorKind::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::error::ListTagsForResourceErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::ListTagsForResourceErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::ListTagsForResourceErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::PutAppsListError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::PutAppsListError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::PutAppsListErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::PutAppsListErrorKind::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::error::PutAppsListErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::PutAppsListErrorKind::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::error::PutAppsListErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::PutAppsListErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::PutNotificationChannelError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::PutNotificationChannelError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::PutNotificationChannelErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::PutNotificationChannelErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::PutNotificationChannelErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::PutNotificationChannelErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::PutPolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::PutPolicyError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::PutPolicyErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::PutPolicyErrorKind::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::error::PutPolicyErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::PutPolicyErrorKind::InvalidTypeException(inner) => {
Error::InvalidTypeException(inner)
}
crate::error::PutPolicyErrorKind::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::error::PutPolicyErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::PutPolicyErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::PutProtocolsListError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::PutProtocolsListError, R>,
) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::PutProtocolsListErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::PutProtocolsListErrorKind::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::error::PutProtocolsListErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::PutProtocolsListErrorKind::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::error::PutProtocolsListErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::PutProtocolsListErrorKind::Unhandled(inner) => {
Error::Unhandled(inner)
}
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::TagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::TagResourceError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::TagResourceErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::TagResourceErrorKind::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::error::TagResourceErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::TagResourceErrorKind::LimitExceededException(inner) => {
Error::LimitExceededException(inner)
}
crate::error::TagResourceErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::TagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UntagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::UntagResourceError, R>) -> Self {
match err {
aws_smithy_http::result::SdkError::ServiceError { err, .. } => match err.kind {
crate::error::UntagResourceErrorKind::InternalErrorException(inner) => {
Error::InternalErrorException(inner)
}
crate::error::UntagResourceErrorKind::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::error::UntagResourceErrorKind::InvalidOperationException(inner) => {
Error::InvalidOperationException(inner)
}
crate::error::UntagResourceErrorKind::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::error::UntagResourceErrorKind::Unhandled(inner) => Error::Unhandled(inner),
},
_ => Error::Unhandled(err.into()),
}
}
}
impl std::error::Error for Error {}