#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum Error {
AccessDeniedError(crate::error::AccessDeniedError),
BadRequestError(crate::error::BadRequestError),
InternalFailureError(crate::error::InternalFailureError),
RequestTooLargeError(crate::error::RequestTooLargeError),
ResourceConflictError(crate::error::ResourceConflictError),
ResourceNotFoundError(crate::error::ResourceNotFoundError),
ResponseTooLargeError(crate::error::ResponseTooLargeError),
ThrottlingError(crate::error::ThrottlingError),
UnauthorizedError(crate::error::UnauthorizedError),
ValidationError(crate::error::ValidationError),
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::InternalFailureError(inner) => inner.fmt(f),
Error::RequestTooLargeError(inner) => inner.fmt(f),
Error::ResourceConflictError(inner) => inner.fmt(f),
Error::ResourceNotFoundError(inner) => inner.fmt(f),
Error::ResponseTooLargeError(inner) => inner.fmt(f),
Error::ThrottlingError(inner) => inner.fmt(f),
Error::UnauthorizedError(inner) => inner.fmt(f),
Error::ValidationError(inner) => inner.fmt(f),
Error::Unhandled(inner) => inner.fmt(f),
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ChangeGuideVisibilityError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ChangeGuideVisibilityError, 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::ChangeGuideVisibilityError> for Error {
fn from(err: crate::error::ChangeGuideVisibilityError) -> Self {
match err.kind {
crate::error::ChangeGuideVisibilityErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::ChangeGuideVisibilityErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::ChangeGuideVisibilityErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::ChangeGuideVisibilityErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::ChangeGuideVisibilityErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::ChangeGuideVisibilityErrorKind::ResourceConflictError(inner) => {
Error::ResourceConflictError(inner)
}
crate::error::ChangeGuideVisibilityErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::ChangeGuideVisibilityErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::ChangeGuideVisibilityErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateGuideError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::CreateGuideError, 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::CreateGuideError> for Error {
fn from(err: crate::error::CreateGuideError) -> Self {
match err.kind {
crate::error::CreateGuideErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::CreateGuideErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::CreateGuideErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::CreateGuideErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::CreateGuideErrorKind::ResponseTooLargeError(inner) => {
Error::ResponseTooLargeError(inner)
}
crate::error::CreateGuideErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::CreateGuideErrorKind::ResourceConflictError(inner) => {
Error::ResourceConflictError(inner)
}
crate::error::CreateGuideErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::CreateGuideErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::CreateGuideErrorKind::RequestTooLargeError(inner) => {
Error::RequestTooLargeError(inner)
}
crate::error::CreateGuideErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateGuideAttachmentError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::CreateGuideAttachmentError, 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::CreateGuideAttachmentError> for Error {
fn from(err: crate::error::CreateGuideAttachmentError) -> Self {
match err.kind {
crate::error::CreateGuideAttachmentErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::CreateGuideAttachmentErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::CreateGuideAttachmentErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::CreateGuideAttachmentErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::CreateGuideAttachmentErrorKind::ResponseTooLargeError(inner) => {
Error::ResponseTooLargeError(inner)
}
crate::error::CreateGuideAttachmentErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::CreateGuideAttachmentErrorKind::ResourceConflictError(inner) => {
Error::ResourceConflictError(inner)
}
crate::error::CreateGuideAttachmentErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::CreateGuideAttachmentErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::CreateGuideAttachmentErrorKind::RequestTooLargeError(inner) => {
Error::RequestTooLargeError(inner)
}
crate::error::CreateGuideAttachmentErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::CreateGuideSampleError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::CreateGuideSampleError, 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::CreateGuideSampleError> for Error {
fn from(err: crate::error::CreateGuideSampleError) -> Self {
match err.kind {
crate::error::CreateGuideSampleErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::CreateGuideSampleErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::CreateGuideSampleErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::CreateGuideSampleErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::CreateGuideSampleErrorKind::ResponseTooLargeError(inner) => {
Error::ResponseTooLargeError(inner)
}
crate::error::CreateGuideSampleErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::CreateGuideSampleErrorKind::ResourceConflictError(inner) => {
Error::ResourceConflictError(inner)
}
crate::error::CreateGuideSampleErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::CreateGuideSampleErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::CreateGuideSampleErrorKind::RequestTooLargeError(inner) => {
Error::RequestTooLargeError(inner)
}
crate::error::CreateGuideSampleErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteGuideError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::DeleteGuideError, 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::DeleteGuideError> for Error {
fn from(err: crate::error::DeleteGuideError) -> Self {
match err.kind {
crate::error::DeleteGuideErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::DeleteGuideErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::DeleteGuideErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::DeleteGuideErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::DeleteGuideErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::DeleteGuideErrorKind::ResourceConflictError(inner) => {
Error::ResourceConflictError(inner)
}
crate::error::DeleteGuideErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::DeleteGuideErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteGuideAttachmentError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::DeleteGuideAttachmentError, 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::DeleteGuideAttachmentError> for Error {
fn from(err: crate::error::DeleteGuideAttachmentError) -> Self {
match err.kind {
crate::error::DeleteGuideAttachmentErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::DeleteGuideAttachmentErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::DeleteGuideAttachmentErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::DeleteGuideAttachmentErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::DeleteGuideAttachmentErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::DeleteGuideAttachmentErrorKind::ResourceConflictError(inner) => {
Error::ResourceConflictError(inner)
}
crate::error::DeleteGuideAttachmentErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::DeleteGuideAttachmentErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::DeleteGuideAttachmentErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::DeleteGuideSampleError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::DeleteGuideSampleError, 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::DeleteGuideSampleError> for Error {
fn from(err: crate::error::DeleteGuideSampleError) -> Self {
match err.kind {
crate::error::DeleteGuideSampleErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::DeleteGuideSampleErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::DeleteGuideSampleErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::DeleteGuideSampleErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::DeleteGuideSampleErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::DeleteGuideSampleErrorKind::ResourceConflictError(inner) => {
Error::ResourceConflictError(inner)
}
crate::error::DeleteGuideSampleErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::DeleteGuideSampleErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::DeleteGuideSampleErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetAccountConfigError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::GetAccountConfigError, 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::GetAccountConfigError> for Error {
fn from(err: crate::error::GetAccountConfigError) -> Self {
match err.kind {
crate::error::GetAccountConfigErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::GetAccountConfigErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::GetAccountConfigErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::GetAccountConfigErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::GetAccountConfigErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::GetAccountConfigErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::GetAccountConfigErrorKind::RequestTooLargeError(inner) => {
Error::RequestTooLargeError(inner)
}
crate::error::GetAccountConfigErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetGuideError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::GetGuideError, 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::GetGuideError> for Error {
fn from(err: crate::error::GetGuideError) -> Self {
match err.kind {
crate::error::GetGuideErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::GetGuideErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::GetGuideErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::GetGuideErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::GetGuideErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::GetGuideErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::GetGuideErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetGuidesNetworkError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::GetGuidesNetworkError, 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::GetGuidesNetworkError> for Error {
fn from(err: crate::error::GetGuidesNetworkError) -> Self {
match err.kind {
crate::error::GetGuidesNetworkErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::GetGuidesNetworkErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::GetGuidesNetworkErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::GetGuidesNetworkErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::GetGuidesNetworkErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::GetGuidesNetworkErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::GetGuidesNetworkErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetPublicAccountConfigError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::GetPublicAccountConfigError, 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::GetPublicAccountConfigError> for Error {
fn from(err: crate::error::GetPublicAccountConfigError) -> Self {
match err.kind {
crate::error::GetPublicAccountConfigErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::GetPublicAccountConfigErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::GetPublicAccountConfigErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::GetPublicAccountConfigErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::GetPublicAccountConfigErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::GetPublicAccountConfigErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::GetPublicAccountConfigErrorKind::RequestTooLargeError(inner) => {
Error::RequestTooLargeError(inner)
}
crate::error::GetPublicAccountConfigErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetPublicGuideError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::GetPublicGuideError, 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::GetPublicGuideError> for Error {
fn from(err: crate::error::GetPublicGuideError) -> Self {
match err.kind {
crate::error::GetPublicGuideErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::GetPublicGuideErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::GetPublicGuideErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::GetPublicGuideErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::GetPublicGuideErrorKind::RequestTooLargeError(inner) => {
Error::RequestTooLargeError(inner)
}
crate::error::GetPublicGuideErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetPublicSharedGuideError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::GetPublicSharedGuideError, 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::GetPublicSharedGuideError> for Error {
fn from(err: crate::error::GetPublicSharedGuideError) -> Self {
match err.kind {
crate::error::GetPublicSharedGuideErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::GetPublicSharedGuideErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::GetPublicSharedGuideErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::GetPublicSharedGuideErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::GetPublicSharedGuideErrorKind::RequestTooLargeError(inner) => {
Error::RequestTooLargeError(inner)
}
crate::error::GetPublicSharedGuideErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::GetX12TransactionSetMetadataError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::GetX12TransactionSetMetadataError, 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::GetX12TransactionSetMetadataError> for Error {
fn from(err: crate::error::GetX12TransactionSetMetadataError) -> Self {
match err.kind {
crate::error::GetX12TransactionSetMetadataErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::GetX12TransactionSetMetadataErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::GetX12TransactionSetMetadataErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::GetX12TransactionSetMetadataErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::GetX12TransactionSetMetadataErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::GetX12TransactionSetMetadataErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::GetX12TransactionSetMetadataErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::GetX12TransactionSetMetadataErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListAllPublicGuidesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListAllPublicGuidesError, 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::ListAllPublicGuidesError> for Error {
fn from(err: crate::error::ListAllPublicGuidesError) -> Self {
match err.kind {
crate::error::ListAllPublicGuidesErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::ListAllPublicGuidesErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::ListAllPublicGuidesErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::ListAllPublicGuidesErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::ListAllPublicGuidesErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::ListAllPublicGuidesErrorKind::RequestTooLargeError(inner) => {
Error::RequestTooLargeError(inner)
}
crate::error::ListAllPublicGuidesErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListGuideAttachmentsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListGuideAttachmentsError, 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::ListGuideAttachmentsError> for Error {
fn from(err: crate::error::ListGuideAttachmentsError) -> Self {
match err.kind {
crate::error::ListGuideAttachmentsErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::ListGuideAttachmentsErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::ListGuideAttachmentsErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::ListGuideAttachmentsErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::ListGuideAttachmentsErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::ListGuideAttachmentsErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::ListGuideAttachmentsErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListGuidesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::ListGuidesError, 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::ListGuidesError> for Error {
fn from(err: crate::error::ListGuidesError) -> Self {
match err.kind {
crate::error::ListGuidesErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::ListGuidesErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::ListGuidesErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::ListGuidesErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::ListGuidesErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::ListGuidesErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::ListGuidesErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListGuideSamplesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListGuideSamplesError, 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::ListGuideSamplesError> for Error {
fn from(err: crate::error::ListGuideSamplesError) -> Self {
match err.kind {
crate::error::ListGuideSamplesErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::ListGuideSamplesErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::ListGuideSamplesErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::ListGuideSamplesErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::ListGuideSamplesErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::ListGuideSamplesErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::ListGuideSamplesErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListPublicGuidesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListPublicGuidesError, 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::ListPublicGuidesError> for Error {
fn from(err: crate::error::ListPublicGuidesError) -> Self {
match err.kind {
crate::error::ListPublicGuidesErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::ListPublicGuidesErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::ListPublicGuidesErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::ListPublicGuidesErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::ListPublicGuidesErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::ListPublicGuidesErrorKind::RequestTooLargeError(inner) => {
Error::RequestTooLargeError(inner)
}
crate::error::ListPublicGuidesErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListPublicGuideSamplesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListPublicGuideSamplesError, 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::ListPublicGuideSamplesError> for Error {
fn from(err: crate::error::ListPublicGuideSamplesError) -> Self {
match err.kind {
crate::error::ListPublicGuideSamplesErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::ListPublicGuideSamplesErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::ListPublicGuideSamplesErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::ListPublicGuideSamplesErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::ListPublicGuideSamplesErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::ListPublicGuideSamplesErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::ListPublicGuideSamplesErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R>
From<aws_smithy_http::result::SdkError<crate::error::ListPublicSharedGuideAttachmentsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<
crate::error::ListPublicSharedGuideAttachmentsError,
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::ListPublicSharedGuideAttachmentsError> for Error {
fn from(err: crate::error::ListPublicSharedGuideAttachmentsError) -> Self {
match err.kind {
crate::error::ListPublicSharedGuideAttachmentsErrorKind::InternalFailureError(
inner,
) => Error::InternalFailureError(inner),
crate::error::ListPublicSharedGuideAttachmentsErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::ListPublicSharedGuideAttachmentsErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::ListPublicSharedGuideAttachmentsErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::ListPublicSharedGuideAttachmentsErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::ListPublicSharedGuideAttachmentsErrorKind::ResourceNotFoundError(
inner,
) => Error::ResourceNotFoundError(inner),
crate::error::ListPublicSharedGuideAttachmentsErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListPublicSharedGuideSamplesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListPublicSharedGuideSamplesError, 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::ListPublicSharedGuideSamplesError> for Error {
fn from(err: crate::error::ListPublicSharedGuideSamplesError) -> Self {
match err.kind {
crate::error::ListPublicSharedGuideSamplesErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::ListPublicSharedGuideSamplesErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::ListPublicSharedGuideSamplesErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::ListPublicSharedGuideSamplesErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::ListPublicSharedGuideSamplesErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::ListPublicSharedGuideSamplesErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::ListPublicSharedGuideSamplesErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::ListX12TransactionSetsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::ListX12TransactionSetsError, 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::ListX12TransactionSetsError> for Error {
fn from(err: crate::error::ListX12TransactionSetsError) -> Self {
match err.kind {
crate::error::ListX12TransactionSetsErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::ListX12TransactionSetsErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::ListX12TransactionSetsErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::ListX12TransactionSetsErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::ListX12TransactionSetsErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::ListX12TransactionSetsErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::ListX12TransactionSetsErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::ListX12TransactionSetsErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::PublishGuideError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::PublishGuideError, 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::PublishGuideError> for Error {
fn from(err: crate::error::PublishGuideError) -> Self {
match err.kind {
crate::error::PublishGuideErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::PublishGuideErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::PublishGuideErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::PublishGuideErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::PublishGuideErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::PublishGuideErrorKind::ResourceConflictError(inner) => {
Error::ResourceConflictError(inner)
}
crate::error::PublishGuideErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::PublishGuideErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::PublishGuideErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::RevertGuideError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::RevertGuideError, 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::RevertGuideError> for Error {
fn from(err: crate::error::RevertGuideError) -> Self {
match err.kind {
crate::error::RevertGuideErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::RevertGuideErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::RevertGuideErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::RevertGuideErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::RevertGuideErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::RevertGuideErrorKind::ResourceConflictError(inner) => {
Error::ResourceConflictError(inner)
}
crate::error::RevertGuideErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::RevertGuideErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::RevertGuideErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateAccountConfigError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::UpdateAccountConfigError, 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::UpdateAccountConfigError> for Error {
fn from(err: crate::error::UpdateAccountConfigError) -> Self {
match err.kind {
crate::error::UpdateAccountConfigErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::UpdateAccountConfigErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::UpdateAccountConfigErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::UpdateAccountConfigErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::UpdateAccountConfigErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::UpdateAccountConfigErrorKind::ResourceConflictError(inner) => {
Error::ResourceConflictError(inner)
}
crate::error::UpdateAccountConfigErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::UpdateAccountConfigErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::UpdateAccountConfigErrorKind::RequestTooLargeError(inner) => {
Error::RequestTooLargeError(inner)
}
crate::error::UpdateAccountConfigErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateGuideError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: aws_smithy_http::result::SdkError<crate::error::UpdateGuideError, 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::UpdateGuideError> for Error {
fn from(err: crate::error::UpdateGuideError) -> Self {
match err.kind {
crate::error::UpdateGuideErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::UpdateGuideErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::UpdateGuideErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::UpdateGuideErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::UpdateGuideErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::UpdateGuideErrorKind::ResourceConflictError(inner) => {
Error::ResourceConflictError(inner)
}
crate::error::UpdateGuideErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::UpdateGuideErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::UpdateGuideErrorKind::RequestTooLargeError(inner) => {
Error::RequestTooLargeError(inner)
}
crate::error::UpdateGuideErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateGuideAttachmentError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::UpdateGuideAttachmentError, 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::UpdateGuideAttachmentError> for Error {
fn from(err: crate::error::UpdateGuideAttachmentError) -> Self {
match err.kind {
crate::error::UpdateGuideAttachmentErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::UpdateGuideAttachmentErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::UpdateGuideAttachmentErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::UpdateGuideAttachmentErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::UpdateGuideAttachmentErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::UpdateGuideAttachmentErrorKind::ResourceConflictError(inner) => {
Error::ResourceConflictError(inner)
}
crate::error::UpdateGuideAttachmentErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::UpdateGuideAttachmentErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::UpdateGuideAttachmentErrorKind::RequestTooLargeError(inner) => {
Error::RequestTooLargeError(inner)
}
crate::error::UpdateGuideAttachmentErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateGuideSampleError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::UpdateGuideSampleError, 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::UpdateGuideSampleError> for Error {
fn from(err: crate::error::UpdateGuideSampleError) -> Self {
match err.kind {
crate::error::UpdateGuideSampleErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::UpdateGuideSampleErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::UpdateGuideSampleErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::UpdateGuideSampleErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::UpdateGuideSampleErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::UpdateGuideSampleErrorKind::ResourceConflictError(inner) => {
Error::ResourceConflictError(inner)
}
crate::error::UpdateGuideSampleErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::UpdateGuideSampleErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::UpdateGuideSampleErrorKind::RequestTooLargeError(inner) => {
Error::RequestTooLargeError(inner)
}
crate::error::UpdateGuideSampleErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl<R> From<aws_smithy_http::result::SdkError<crate::error::UpdateShareConfigError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: aws_smithy_http::result::SdkError<crate::error::UpdateShareConfigError, 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::UpdateShareConfigError> for Error {
fn from(err: crate::error::UpdateShareConfigError) -> Self {
match err.kind {
crate::error::UpdateShareConfigErrorKind::InternalFailureError(inner) => {
Error::InternalFailureError(inner)
}
crate::error::UpdateShareConfigErrorKind::ThrottlingError(inner) => {
Error::ThrottlingError(inner)
}
crate::error::UpdateShareConfigErrorKind::ValidationError(inner) => {
Error::ValidationError(inner)
}
crate::error::UpdateShareConfigErrorKind::AccessDeniedError(inner) => {
Error::AccessDeniedError(inner)
}
crate::error::UpdateShareConfigErrorKind::UnauthorizedError(inner) => {
Error::UnauthorizedError(inner)
}
crate::error::UpdateShareConfigErrorKind::ResourceConflictError(inner) => {
Error::ResourceConflictError(inner)
}
crate::error::UpdateShareConfigErrorKind::BadRequestError(inner) => {
Error::BadRequestError(inner)
}
crate::error::UpdateShareConfigErrorKind::ResourceNotFoundError(inner) => {
Error::ResourceNotFoundError(inner)
}
crate::error::UpdateShareConfigErrorKind::RequestTooLargeError(inner) => {
Error::RequestTooLargeError(inner)
}
crate::error::UpdateShareConfigErrorKind::Unhandled(inner) => {
Error::Unhandled(crate::error::Unhandled::new(inner.into()))
}
}
}
}
impl std::error::Error for Error {}