// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// All possible error types for this service.
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum Error {
    /// The server response for authorization failure.
    AccessDeniedError(crate::error::AccessDeniedError),
    /// The server cannot process the request due to an apparent client error.
    BadRequestError(crate::error::BadRequestError),
    /// The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
    GatewayTimeoutError(crate::error::GatewayTimeoutError),
    /// The server response when an unexpected error occurred while processing request.
    InternalFailureError(crate::error::InternalFailureError),
    #[allow(missing_docs)] // documentation missing in model
    OperationConflictError(crate::error::OperationConflictError),
    /// The server response for the usage plan quota exceeded error.
    QuotaExceededError(crate::error::QuotaExceededError),
    /// The server could not process the request because of conflict in the current state of the resource.
    ResourceConflictError(crate::error::ResourceConflictError),
    /// The server response when the specified resource cannot be found after an API request passes authentication and authorization.
    ResourceNotFoundError(crate::error::ResourceNotFoundError),
    /// The server cannot handle the request due to technical reasons.
    ServiceUnavailableError(crate::error::ServiceUnavailableError),
    /// The server response when usage plan or account-level throttling limits exceeded.
    ThrottlingError(crate::error::ThrottlingError),
    /// The server response when the authorizer failed to authenticate the caller.
    UnauthorizedError(crate::error::UnauthorizedError),
    ///
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
    ///
    /// When logging an error from the SDK, it is recommended that you either wrap the error in
    /// [`DisplayErrorContext`](crate::types::DisplayErrorContext), use another
    /// error reporter library that visits the error's cause/source chain, or call
    /// [`Error::source`](std::error::Error::source) for more details about the underlying cause.
    ///
    Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for Error {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Error::AccessDeniedError(inner) => inner.fmt(f),
            Error::BadRequestError(inner) => inner.fmt(f),
            Error::GatewayTimeoutError(inner) => inner.fmt(f),
            Error::InternalFailureError(inner) => inner.fmt(f),
            Error::OperationConflictError(inner) => inner.fmt(f),
            Error::QuotaExceededError(inner) => inner.fmt(f),
            Error::ResourceConflictError(inner) => inner.fmt(f),
            Error::ResourceNotFoundError(inner) => inner.fmt(f),
            Error::ServiceUnavailableError(inner) => inner.fmt(f),
            Error::ThrottlingError(inner) => inner.fmt(f),
            Error::UnauthorizedError(inner) => inner.fmt(f),
            Error::Unhandled(inner) => inner.fmt(f),
        }
    }
}
impl<R>
    From<
        aws_smithy_http::result::SdkError<
            crate::error::CreateInboundX12TransactionSettingsError,
            R,
        >,
    > for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::CreateInboundX12TransactionSettingsError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::CreateInboundX12TransactionSettingsError> for Error {
    fn from(err: crate::error::CreateInboundX12TransactionSettingsError) -> Self {
        match err.kind {
            crate::error::CreateInboundX12TransactionSettingsErrorKind::OperationConflictError(
                inner,
            ) => Error::OperationConflictError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::ResourceConflictError(
                inner,
            ) => Error::ResourceConflictError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::AccessDeniedError(
                inner,
            ) => Error::AccessDeniedError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::CreateInboundX12TransactionSettingsErrorKind::GatewayTimeoutError(
                inner,
            ) => Error::GatewayTimeoutError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::InternalFailureError(
                inner,
            ) => Error::InternalFailureError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::QuotaExceededError(
                inner,
            ) => Error::QuotaExceededError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::ResourceNotFoundError(
                inner,
            ) => Error::ResourceNotFoundError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::ServiceUnavailableError(
                inner,
            ) => Error::ServiceUnavailableError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::CreateInboundX12TransactionSettingsErrorKind::UnauthorizedError(
                inner,
            ) => Error::UnauthorizedError(inner),
            crate::error::CreateInboundX12TransactionSettingsErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R>
    From<
        aws_smithy_http::result::SdkError<
            crate::error::CreateOutboundX12TransactionSettingsError,
            R,
        >,
    > for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::CreateOutboundX12TransactionSettingsError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::CreateOutboundX12TransactionSettingsError> for Error {
    fn from(err: crate::error::CreateOutboundX12TransactionSettingsError) -> Self {
        match err.kind {
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::OperationConflictError(inner) => Error::OperationConflictError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::ResourceConflictError(inner) => Error::ResourceConflictError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::AccessDeniedError(inner) => Error::AccessDeniedError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::BadRequestError(inner) => Error::BadRequestError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::GatewayTimeoutError(inner) => Error::GatewayTimeoutError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::InternalFailureError(inner) => Error::InternalFailureError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::QuotaExceededError(inner) => Error::QuotaExceededError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::ServiceUnavailableError(inner) => Error::ServiceUnavailableError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::ThrottlingError(inner) => Error::ThrottlingError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
            crate::error::CreateOutboundX12TransactionSettingsErrorKind::Unhandled(inner) => Error::Unhandled(crate::error::Unhandled::new(inner.into())),
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateX12BucketConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::CreateX12BucketConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::CreateX12BucketConnectionError> for Error {
    fn from(err: crate::error::CreateX12BucketConnectionError) -> Self {
        match err.kind {
            crate::error::CreateX12BucketConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::CreateX12BucketConnectionErrorKind::ResourceConflictError(inner) => {
                Error::ResourceConflictError(inner)
            }
            crate::error::CreateX12BucketConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::CreateX12BucketConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::CreateX12BucketConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::CreateX12BucketConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::CreateX12BucketConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::CreateX12BucketConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::CreateX12BucketConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::CreateX12BucketConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::CreateX12BucketConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::CreateX12BucketConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateX12PartnershipError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::CreateX12PartnershipError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::CreateX12PartnershipError> for Error {
    fn from(err: crate::error::CreateX12PartnershipError) -> Self {
        match err.kind {
            crate::error::CreateX12PartnershipErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::ResourceConflictError(inner) => {
                Error::ResourceConflictError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::CreateX12PartnershipErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateX12ProfileError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::CreateX12ProfileError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::CreateX12ProfileError> for Error {
    fn from(err: crate::error::CreateX12ProfileError) -> Self {
        match err.kind {
            crate::error::CreateX12ProfileErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::ResourceConflictError(inner) => {
                Error::ResourceConflictError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::CreateX12ProfileErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R>
    From<
        aws_smithy_http::result::SdkError<
            crate::error::DeleteInboundX12TransactionSettingsError,
            R,
        >,
    > for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::DeleteInboundX12TransactionSettingsError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::DeleteInboundX12TransactionSettingsError> for Error {
    fn from(err: crate::error::DeleteInboundX12TransactionSettingsError) -> Self {
        match err.kind {
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::OperationConflictError(
                inner,
            ) => Error::OperationConflictError(inner),
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::AccessDeniedError(
                inner,
            ) => Error::AccessDeniedError(inner),
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::GatewayTimeoutError(
                inner,
            ) => Error::GatewayTimeoutError(inner),
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::InternalFailureError(
                inner,
            ) => Error::InternalFailureError(inner),
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::QuotaExceededError(
                inner,
            ) => Error::QuotaExceededError(inner),
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::ResourceNotFoundError(
                inner,
            ) => Error::ResourceNotFoundError(inner),
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::ServiceUnavailableError(
                inner,
            ) => Error::ServiceUnavailableError(inner),
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::UnauthorizedError(
                inner,
            ) => Error::UnauthorizedError(inner),
            crate::error::DeleteInboundX12TransactionSettingsErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R>
    From<
        aws_smithy_http::result::SdkError<
            crate::error::DeleteOutboundX12TransactionSettingsError,
            R,
        >,
    > for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::DeleteOutboundX12TransactionSettingsError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::DeleteOutboundX12TransactionSettingsError> for Error {
    fn from(err: crate::error::DeleteOutboundX12TransactionSettingsError) -> Self {
        match err.kind {
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::OperationConflictError(inner) => Error::OperationConflictError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::AccessDeniedError(inner) => Error::AccessDeniedError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::BadRequestError(inner) => Error::BadRequestError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::GatewayTimeoutError(inner) => Error::GatewayTimeoutError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::InternalFailureError(inner) => Error::InternalFailureError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::QuotaExceededError(inner) => Error::QuotaExceededError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::ServiceUnavailableError(inner) => Error::ServiceUnavailableError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::ThrottlingError(inner) => Error::ThrottlingError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
            crate::error::DeleteOutboundX12TransactionSettingsErrorKind::Unhandled(inner) => Error::Unhandled(crate::error::Unhandled::new(inner.into())),
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteX12BucketConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::DeleteX12BucketConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::DeleteX12BucketConnectionError> for Error {
    fn from(err: crate::error::DeleteX12BucketConnectionError) -> Self {
        match err.kind {
            crate::error::DeleteX12BucketConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::DeleteX12BucketConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::DeleteX12BucketConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::DeleteX12BucketConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::DeleteX12BucketConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::DeleteX12BucketConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::DeleteX12BucketConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::DeleteX12BucketConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::DeleteX12BucketConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::DeleteX12BucketConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::DeleteX12BucketConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteX12PartnershipError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::DeleteX12PartnershipError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::DeleteX12PartnershipError> for Error {
    fn from(err: crate::error::DeleteX12PartnershipError) -> Self {
        match err.kind {
            crate::error::DeleteX12PartnershipErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::DeleteX12PartnershipErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteX12ProfileError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::DeleteX12ProfileError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::DeleteX12ProfileError> for Error {
    fn from(err: crate::error::DeleteX12ProfileError) -> Self {
        match err.kind {
            crate::error::DeleteX12ProfileErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::DeleteX12ProfileErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GenerateEdiError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: aws_smithy_http::result::SdkError<crate::error::GenerateEdiError, R>) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GenerateEdiError> for Error {
    fn from(err: crate::error::GenerateEdiError) -> Self {
        match err.kind {
            crate::error::GenerateEdiErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GenerateEdiErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GenerateEdiErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GenerateEdiErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GenerateEdiErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GenerateEdiErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GenerateEdiErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GenerateEdiErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GenerateEdiErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GenerateEdiErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R>
    From<aws_smithy_http::result::SdkError<crate::error::GetInboundX12TransactionSettingsError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::GetInboundX12TransactionSettingsError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetInboundX12TransactionSettingsError> for Error {
    fn from(err: crate::error::GetInboundX12TransactionSettingsError) -> Self {
        match err.kind {
            crate::error::GetInboundX12TransactionSettingsErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetInboundX12TransactionSettingsErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetInboundX12TransactionSettingsErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetInboundX12TransactionSettingsErrorKind::InternalFailureError(
                inner,
            ) => Error::InternalFailureError(inner),
            crate::error::GetInboundX12TransactionSettingsErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetInboundX12TransactionSettingsErrorKind::ResourceNotFoundError(
                inner,
            ) => Error::ResourceNotFoundError(inner),
            crate::error::GetInboundX12TransactionSettingsErrorKind::ServiceUnavailableError(
                inner,
            ) => Error::ServiceUnavailableError(inner),
            crate::error::GetInboundX12TransactionSettingsErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetInboundX12TransactionSettingsErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetInboundX12TransactionSettingsErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetOutboundX12ControlNumbersError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::GetOutboundX12ControlNumbersError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetOutboundX12ControlNumbersError> for Error {
    fn from(err: crate::error::GetOutboundX12ControlNumbersError) -> Self {
        match err.kind {
            crate::error::GetOutboundX12ControlNumbersErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetOutboundX12ControlNumbersErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R>
    From<aws_smithy_http::result::SdkError<crate::error::GetOutboundX12TransactionSettingsError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::GetOutboundX12TransactionSettingsError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetOutboundX12TransactionSettingsError> for Error {
    fn from(err: crate::error::GetOutboundX12TransactionSettingsError) -> Self {
        match err.kind {
            crate::error::GetOutboundX12TransactionSettingsErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetOutboundX12TransactionSettingsErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetOutboundX12TransactionSettingsErrorKind::GatewayTimeoutError(
                inner,
            ) => Error::GatewayTimeoutError(inner),
            crate::error::GetOutboundX12TransactionSettingsErrorKind::InternalFailureError(
                inner,
            ) => Error::InternalFailureError(inner),
            crate::error::GetOutboundX12TransactionSettingsErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetOutboundX12TransactionSettingsErrorKind::ResourceNotFoundError(
                inner,
            ) => Error::ResourceNotFoundError(inner),
            crate::error::GetOutboundX12TransactionSettingsErrorKind::ServiceUnavailableError(
                inner,
            ) => Error::ServiceUnavailableError(inner),
            crate::error::GetOutboundX12TransactionSettingsErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetOutboundX12TransactionSettingsErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetOutboundX12TransactionSettingsErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetX12BucketConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::GetX12BucketConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetX12BucketConnectionError> for Error {
    fn from(err: crate::error::GetX12BucketConnectionError) -> Self {
        match err.kind {
            crate::error::GetX12BucketConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetX12BucketConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetX12BucketConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetX12BucketConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetX12BucketConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetX12BucketConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GetX12BucketConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GetX12BucketConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetX12BucketConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetX12BucketConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetX12ConnectionsError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::GetX12ConnectionsError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetX12ConnectionsError> for Error {
    fn from(err: crate::error::GetX12ConnectionsError) -> Self {
        match err.kind {
            crate::error::GetX12ConnectionsErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetX12ConnectionsErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetX12ConnectionsErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetX12ConnectionsErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetX12ConnectionsErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetX12ConnectionsErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GetX12ConnectionsErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GetX12ConnectionsErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetX12ConnectionsErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetX12ConnectionsErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetX12PartnershipError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::GetX12PartnershipError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetX12PartnershipError> for Error {
    fn from(err: crate::error::GetX12PartnershipError) -> Self {
        match err.kind {
            crate::error::GetX12PartnershipErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetX12PartnershipErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R>
    From<aws_smithy_http::result::SdkError<crate::error::GetX12PartnershipByInterchangesError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::GetX12PartnershipByInterchangesError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetX12PartnershipByInterchangesError> for Error {
    fn from(err: crate::error::GetX12PartnershipByInterchangesError) -> Self {
        match err.kind {
            crate::error::GetX12PartnershipByInterchangesErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetX12PartnershipByInterchangesErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetX12PartnershipByInterchangesErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetX12PartnershipByInterchangesErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetX12PartnershipByInterchangesErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetX12PartnershipByInterchangesErrorKind::ResourceNotFoundError(
                inner,
            ) => Error::ResourceNotFoundError(inner),
            crate::error::GetX12PartnershipByInterchangesErrorKind::ServiceUnavailableError(
                inner,
            ) => Error::ServiceUnavailableError(inner),
            crate::error::GetX12PartnershipByInterchangesErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetX12PartnershipByInterchangesErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetX12PartnershipByInterchangesErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetX12ProfileError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: aws_smithy_http::result::SdkError<crate::error::GetX12ProfileError, R>) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetX12ProfileError> for Error {
    fn from(err: crate::error::GetX12ProfileError) -> Self {
        match err.kind {
            crate::error::GetX12ProfileErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetX12ProfileErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetX12ProfileErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetX12ProfileErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetX12ProfileErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetX12ProfileErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GetX12ProfileErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GetX12ProfileErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetX12ProfileErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetX12ProfileErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetX12ProfileByInterchangeError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::GetX12ProfileByInterchangeError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::GetX12ProfileByInterchangeError> for Error {
    fn from(err: crate::error::GetX12ProfileByInterchangeError) -> Self {
        match err.kind {
            crate::error::GetX12ProfileByInterchangeErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::GetX12ProfileByInterchangeErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::IncrementX12ControlNumberError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::IncrementX12ControlNumberError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::IncrementX12ControlNumberError> for Error {
    fn from(err: crate::error::IncrementX12ControlNumberError) -> Self {
        match err.kind {
            crate::error::IncrementX12ControlNumberErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::IncrementX12ControlNumberErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListX12PartnershipsError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::ListX12PartnershipsError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::ListX12PartnershipsError> for Error {
    fn from(err: crate::error::ListX12PartnershipsError) -> Self {
        match err.kind {
            crate::error::ListX12PartnershipsErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::ListX12PartnershipsErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListX12ProfilesError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(err: aws_smithy_http::result::SdkError<crate::error::ListX12ProfilesError, R>) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::ListX12ProfilesError> for Error {
    fn from(err: crate::error::ListX12ProfilesError) -> Self {
        match err.kind {
            crate::error::ListX12ProfilesErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::ListX12ProfilesErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::SetOutboundX12ControlNumberError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::SetOutboundX12ControlNumberError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::SetOutboundX12ControlNumberError> for Error {
    fn from(err: crate::error::SetOutboundX12ControlNumberError) -> Self {
        match err.kind {
            crate::error::SetOutboundX12ControlNumberErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::SetOutboundX12ControlNumberErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R>
    From<
        aws_smithy_http::result::SdkError<
            crate::error::UpdateInboundX12TransactionSettingsError,
            R,
        >,
    > for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::UpdateInboundX12TransactionSettingsError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::UpdateInboundX12TransactionSettingsError> for Error {
    fn from(err: crate::error::UpdateInboundX12TransactionSettingsError) -> Self {
        match err.kind {
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::OperationConflictError(
                inner,
            ) => Error::OperationConflictError(inner),
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::AccessDeniedError(
                inner,
            ) => Error::AccessDeniedError(inner),
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::GatewayTimeoutError(
                inner,
            ) => Error::GatewayTimeoutError(inner),
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::InternalFailureError(
                inner,
            ) => Error::InternalFailureError(inner),
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::QuotaExceededError(
                inner,
            ) => Error::QuotaExceededError(inner),
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::ResourceNotFoundError(
                inner,
            ) => Error::ResourceNotFoundError(inner),
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::ServiceUnavailableError(
                inner,
            ) => Error::ServiceUnavailableError(inner),
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::UnauthorizedError(
                inner,
            ) => Error::UnauthorizedError(inner),
            crate::error::UpdateInboundX12TransactionSettingsErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R>
    From<
        aws_smithy_http::result::SdkError<
            crate::error::UpdateOutboundX12TransactionSettingsError,
            R,
        >,
    > for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<
            crate::error::UpdateOutboundX12TransactionSettingsError,
            R,
        >,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::UpdateOutboundX12TransactionSettingsError> for Error {
    fn from(err: crate::error::UpdateOutboundX12TransactionSettingsError) -> Self {
        match err.kind {
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::OperationConflictError(inner) => Error::OperationConflictError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::AccessDeniedError(inner) => Error::AccessDeniedError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::BadRequestError(inner) => Error::BadRequestError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::GatewayTimeoutError(inner) => Error::GatewayTimeoutError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::InternalFailureError(inner) => Error::InternalFailureError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::QuotaExceededError(inner) => Error::QuotaExceededError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::ResourceNotFoundError(inner) => Error::ResourceNotFoundError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::ServiceUnavailableError(inner) => Error::ServiceUnavailableError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::ThrottlingError(inner) => Error::ThrottlingError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::UnauthorizedError(inner) => Error::UnauthorizedError(inner),
            crate::error::UpdateOutboundX12TransactionSettingsErrorKind::Unhandled(inner) => Error::Unhandled(crate::error::Unhandled::new(inner.into())),
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateX12BucketConnectionError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::UpdateX12BucketConnectionError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::UpdateX12BucketConnectionError> for Error {
    fn from(err: crate::error::UpdateX12BucketConnectionError) -> Self {
        match err.kind {
            crate::error::UpdateX12BucketConnectionErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::UpdateX12BucketConnectionErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::UpdateX12BucketConnectionErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::UpdateX12BucketConnectionErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::UpdateX12BucketConnectionErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::UpdateX12BucketConnectionErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::UpdateX12BucketConnectionErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::UpdateX12BucketConnectionErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::UpdateX12BucketConnectionErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::UpdateX12BucketConnectionErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::UpdateX12BucketConnectionErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateX12PartnershipError, R>>
    for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::UpdateX12PartnershipError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::UpdateX12PartnershipError> for Error {
    fn from(err: crate::error::UpdateX12PartnershipError) -> Self {
        match err.kind {
            crate::error::UpdateX12PartnershipErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::UpdateX12PartnershipErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateX12ProfileError, R>> for Error
where
    R: Send + Sync + std::fmt::Debug + 'static,
{
    fn from(
        err: aws_smithy_http::result::SdkError<crate::error::UpdateX12ProfileError, R>,
    ) -> Self {
        match err {
            aws_smithy_http::result::SdkError::ServiceError(context) => {
                Self::from(context.into_err())
            }
            _ => Error::Unhandled(crate::error::Unhandled::new(err.into())),
        }
    }
}
impl From<crate::error::UpdateX12ProfileError> for Error {
    fn from(err: crate::error::UpdateX12ProfileError) -> Self {
        match err.kind {
            crate::error::UpdateX12ProfileErrorKind::OperationConflictError(inner) => {
                Error::OperationConflictError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::AccessDeniedError(inner) => {
                Error::AccessDeniedError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::BadRequestError(inner) => {
                Error::BadRequestError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::GatewayTimeoutError(inner) => {
                Error::GatewayTimeoutError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::InternalFailureError(inner) => {
                Error::InternalFailureError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::QuotaExceededError(inner) => {
                Error::QuotaExceededError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::ResourceNotFoundError(inner) => {
                Error::ResourceNotFoundError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::ServiceUnavailableError(inner) => {
                Error::ServiceUnavailableError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::ThrottlingError(inner) => {
                Error::ThrottlingError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::UnauthorizedError(inner) => {
                Error::UnauthorizedError(inner)
            }
            crate::error::UpdateX12ProfileErrorKind::Unhandled(inner) => {
                Error::Unhandled(crate::error::Unhandled::new(inner.into()))
            }
        }
    }
}
impl std::error::Error for Error {}
