#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
ConflictException(crate::types::error::ConflictException),
InternalServerException(crate::types::error::InternalServerException),
PreconditionFailedException(crate::types::error::PreconditionFailedException),
ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
ThrottlingException(crate::types::error::ThrottlingException),
ValidationException(crate::types::error::ValidationException),
Unhandled(::aws_smithy_types::error::Unhandled),
}
impl ::std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::ConflictException(inner) => inner.fmt(f),
Error::InternalServerException(inner) => inner.fmt(f),
Error::PreconditionFailedException(inner) => inner.fmt(f),
Error::ResourceNotFoundException(inner) => inner.fmt(f),
Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
Error::ThrottlingException(inner) => inner.fmt(f),
Error::ValidationException(inner) => inner.fmt(f),
Error::Unhandled(inner) => inner.fmt(f),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build()
),
}
}
}
impl
From<
crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError,
> for Error
{
fn from(
err: crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError,
) -> Self {
match err {
crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::batch_create_custom_vocabulary_item::BatchCreateCustomVocabularyItemError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build()
),
}
}
}
impl
From<
crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError,
> for Error
{
fn from(
err: crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError,
) -> Self {
match err {
crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::batch_delete_custom_vocabulary_item::BatchDeleteCustomVocabularyItemError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build()
),
}
}
}
impl
From<
crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError,
> for Error
{
fn from(
err: crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError,
) -> Self {
match err {
crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::batch_update_custom_vocabulary_item::BatchUpdateCustomVocabularyItemError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::build_bot_locale::BuildBotLocaleError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::build_bot_locale::BuildBotLocaleError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::build_bot_locale::BuildBotLocaleError> for Error {
fn from(err: crate::operation::build_bot_locale::BuildBotLocaleError) -> Self {
match err {
crate::operation::build_bot_locale::BuildBotLocaleError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::build_bot_locale::BuildBotLocaleError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::build_bot_locale::BuildBotLocaleError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::build_bot_locale::BuildBotLocaleError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::build_bot_locale::BuildBotLocaleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::build_bot_locale::BuildBotLocaleError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::build_bot_locale::BuildBotLocaleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::create_bot::CreateBotError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<crate::operation::create_bot::CreateBotError, R>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_bot::CreateBotError> for Error {
fn from(err: crate::operation::create_bot::CreateBotError) -> Self {
match err {
crate::operation::create_bot::CreateBotError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::create_bot::CreateBotError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_bot::CreateBotError::PreconditionFailedException(inner) => {
Error::PreconditionFailedException(inner)
}
crate::operation::create_bot::CreateBotError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_bot::CreateBotError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_bot::CreateBotError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_bot::CreateBotError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::create_bot_alias::CreateBotAliasError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::create_bot_alias::CreateBotAliasError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_bot_alias::CreateBotAliasError> for Error {
fn from(err: crate::operation::create_bot_alias::CreateBotAliasError) -> Self {
match err {
crate::operation::create_bot_alias::CreateBotAliasError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_bot_alias::CreateBotAliasError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_bot_alias::CreateBotAliasError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::create_bot_alias::CreateBotAliasError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_bot_alias::CreateBotAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_bot_alias::CreateBotAliasError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_bot_alias::CreateBotAliasError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::create_bot_locale::CreateBotLocaleError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::create_bot_locale::CreateBotLocaleError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_bot_locale::CreateBotLocaleError> for Error {
fn from(err: crate::operation::create_bot_locale::CreateBotLocaleError) -> Self {
match err {
crate::operation::create_bot_locale::CreateBotLocaleError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_bot_locale::CreateBotLocaleError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_bot_locale::CreateBotLocaleError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::create_bot_locale::CreateBotLocaleError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_bot_locale::CreateBotLocaleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_bot_locale::CreateBotLocaleError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_bot_locale::CreateBotLocaleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::create_bot_version::CreateBotVersionError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::create_bot_version::CreateBotVersionError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_bot_version::CreateBotVersionError> for Error {
fn from(err: crate::operation::create_bot_version::CreateBotVersionError) -> Self {
match err {
crate::operation::create_bot_version::CreateBotVersionError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_bot_version::CreateBotVersionError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_bot_version::CreateBotVersionError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::create_bot_version::CreateBotVersionError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_bot_version::CreateBotVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_bot_version::CreateBotVersionError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_bot_version::CreateBotVersionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_http::result::SdkError<crate::operation::create_export::CreateExportError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::create_export::CreateExportError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_export::CreateExportError> for Error {
fn from(err: crate::operation::create_export::CreateExportError) -> Self {
match err {
crate::operation::create_export::CreateExportError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::create_export::CreateExportError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_export::CreateExportError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::create_export::CreateExportError::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_export::CreateExportError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_export::CreateExportError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_export::CreateExportError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<::aws_smithy_http::result::SdkError<crate::operation::create_intent::CreateIntentError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::create_intent::CreateIntentError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_intent::CreateIntentError> for Error {
fn from(err: crate::operation::create_intent::CreateIntentError) -> Self {
match err {
crate::operation::create_intent::CreateIntentError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::create_intent::CreateIntentError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_intent::CreateIntentError::PreconditionFailedException(
inner,
) => Error::PreconditionFailedException(inner),
crate::operation::create_intent::CreateIntentError::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_intent::CreateIntentError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_intent::CreateIntentError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_intent::CreateIntentError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::create_resource_policy::CreateResourcePolicyError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::create_resource_policy::CreateResourcePolicyError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_resource_policy::CreateResourcePolicyError> for Error {
fn from(err: crate::operation::create_resource_policy::CreateResourcePolicyError) -> Self {
match err {
crate::operation::create_resource_policy::CreateResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_resource_policy::CreateResourcePolicyError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::create_resource_policy::CreateResourcePolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_resource_policy::CreateResourcePolicyError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_resource_policy::CreateResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_resource_policy::CreateResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_resource_policy::CreateResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError>
for Error
{
fn from(
err: crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError,
) -> Self {
match err {
crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_resource_policy_statement::CreateResourcePolicyStatementError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::create_slot::CreateSlotError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<crate::operation::create_slot::CreateSlotError, R>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_slot::CreateSlotError> for Error {
fn from(err: crate::operation::create_slot::CreateSlotError) -> Self {
match err {
crate::operation::create_slot::CreateSlotError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::create_slot::CreateSlotError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_slot::CreateSlotError::PreconditionFailedException(inner) => {
Error::PreconditionFailedException(inner)
}
crate::operation::create_slot::CreateSlotError::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_slot::CreateSlotError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_slot::CreateSlotError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_slot::CreateSlotError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::create_slot_type::CreateSlotTypeError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::create_slot_type::CreateSlotTypeError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_slot_type::CreateSlotTypeError> for Error {
fn from(err: crate::operation::create_slot_type::CreateSlotTypeError) -> Self {
match err {
crate::operation::create_slot_type::CreateSlotTypeError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_slot_type::CreateSlotTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_slot_type::CreateSlotTypeError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::create_slot_type::CreateSlotTypeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_slot_type::CreateSlotTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_slot_type::CreateSlotTypeError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_slot_type::CreateSlotTypeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::create_upload_url::CreateUploadUrlError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::create_upload_url::CreateUploadUrlError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_upload_url::CreateUploadUrlError> for Error {
fn from(err: crate::operation::create_upload_url::CreateUploadUrlError) -> Self {
match err {
crate::operation::create_upload_url::CreateUploadUrlError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_upload_url::CreateUploadUrlError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_upload_url::CreateUploadUrlError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_upload_url::CreateUploadUrlError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_upload_url::CreateUploadUrlError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_upload_url::CreateUploadUrlError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::delete_bot::DeleteBotError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<crate::operation::delete_bot::DeleteBotError, R>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_bot::DeleteBotError> for Error {
fn from(err: crate::operation::delete_bot::DeleteBotError) -> Self {
match err {
crate::operation::delete_bot::DeleteBotError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::delete_bot::DeleteBotError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_bot::DeleteBotError::PreconditionFailedException(inner) => {
Error::PreconditionFailedException(inner)
}
crate::operation::delete_bot::DeleteBotError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::delete_bot::DeleteBotError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_bot::DeleteBotError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_bot::DeleteBotError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::delete_bot_alias::DeleteBotAliasError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::delete_bot_alias::DeleteBotAliasError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_bot_alias::DeleteBotAliasError> for Error {
fn from(err: crate::operation::delete_bot_alias::DeleteBotAliasError) -> Self {
match err {
crate::operation::delete_bot_alias::DeleteBotAliasError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_bot_alias::DeleteBotAliasError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_bot_alias::DeleteBotAliasError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::delete_bot_alias::DeleteBotAliasError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::delete_bot_alias::DeleteBotAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_bot_alias::DeleteBotAliasError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_bot_alias::DeleteBotAliasError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::delete_bot_locale::DeleteBotLocaleError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::delete_bot_locale::DeleteBotLocaleError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_bot_locale::DeleteBotLocaleError> for Error {
fn from(err: crate::operation::delete_bot_locale::DeleteBotLocaleError) -> Self {
match err {
crate::operation::delete_bot_locale::DeleteBotLocaleError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_bot_locale::DeleteBotLocaleError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_bot_locale::DeleteBotLocaleError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::delete_bot_locale::DeleteBotLocaleError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::delete_bot_locale::DeleteBotLocaleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_bot_locale::DeleteBotLocaleError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_bot_locale::DeleteBotLocaleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::delete_bot_version::DeleteBotVersionError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::delete_bot_version::DeleteBotVersionError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_bot_version::DeleteBotVersionError> for Error {
fn from(err: crate::operation::delete_bot_version::DeleteBotVersionError) -> Self {
match err {
crate::operation::delete_bot_version::DeleteBotVersionError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_bot_version::DeleteBotVersionError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_bot_version::DeleteBotVersionError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::delete_bot_version::DeleteBotVersionError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::delete_bot_version::DeleteBotVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_bot_version::DeleteBotVersionError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_bot_version::DeleteBotVersionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError> for Error {
fn from(err: crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError) -> Self {
match err {
crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_custom_vocabulary::DeleteCustomVocabularyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_http::result::SdkError<crate::operation::delete_export::DeleteExportError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::delete_export::DeleteExportError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_export::DeleteExportError> for Error {
fn from(err: crate::operation::delete_export::DeleteExportError) -> Self {
match err {
crate::operation::delete_export::DeleteExportError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_export::DeleteExportError::PreconditionFailedException(
inner,
) => Error::PreconditionFailedException(inner),
crate::operation::delete_export::DeleteExportError::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::operation::delete_export::DeleteExportError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_export::DeleteExportError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_export::DeleteExportError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<::aws_smithy_http::result::SdkError<crate::operation::delete_import::DeleteImportError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::delete_import::DeleteImportError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_import::DeleteImportError> for Error {
fn from(err: crate::operation::delete_import::DeleteImportError) -> Self {
match err {
crate::operation::delete_import::DeleteImportError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_import::DeleteImportError::PreconditionFailedException(
inner,
) => Error::PreconditionFailedException(inner),
crate::operation::delete_import::DeleteImportError::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::operation::delete_import::DeleteImportError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_import::DeleteImportError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_import::DeleteImportError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<::aws_smithy_http::result::SdkError<crate::operation::delete_intent::DeleteIntentError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::delete_intent::DeleteIntentError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_intent::DeleteIntentError> for Error {
fn from(err: crate::operation::delete_intent::DeleteIntentError) -> Self {
match err {
crate::operation::delete_intent::DeleteIntentError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::delete_intent::DeleteIntentError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_intent::DeleteIntentError::PreconditionFailedException(
inner,
) => Error::PreconditionFailedException(inner),
crate::operation::delete_intent::DeleteIntentError::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::operation::delete_intent::DeleteIntentError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_intent::DeleteIntentError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_intent::DeleteIntentError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::delete_resource_policy::DeleteResourcePolicyError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::delete_resource_policy::DeleteResourcePolicyError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
match err {
crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_resource_policy::DeleteResourcePolicyError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError>
for Error
{
fn from(
err: crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError,
) -> Self {
match err {
crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::delete_slot::DeleteSlotError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<crate::operation::delete_slot::DeleteSlotError, R>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_slot::DeleteSlotError> for Error {
fn from(err: crate::operation::delete_slot::DeleteSlotError) -> Self {
match err {
crate::operation::delete_slot::DeleteSlotError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::delete_slot::DeleteSlotError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_slot::DeleteSlotError::PreconditionFailedException(inner) => {
Error::PreconditionFailedException(inner)
}
crate::operation::delete_slot::DeleteSlotError::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::operation::delete_slot::DeleteSlotError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_slot::DeleteSlotError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_slot::DeleteSlotError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::delete_slot_type::DeleteSlotTypeError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::delete_slot_type::DeleteSlotTypeError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_slot_type::DeleteSlotTypeError> for Error {
fn from(err: crate::operation::delete_slot_type::DeleteSlotTypeError) -> Self {
match err {
crate::operation::delete_slot_type::DeleteSlotTypeError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_slot_type::DeleteSlotTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_slot_type::DeleteSlotTypeError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::delete_slot_type::DeleteSlotTypeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::delete_slot_type::DeleteSlotTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_slot_type::DeleteSlotTypeError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_slot_type::DeleteSlotTypeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::delete_utterances::DeleteUtterancesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::delete_utterances::DeleteUtterancesError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::delete_utterances::DeleteUtterancesError> for Error {
fn from(err: crate::operation::delete_utterances::DeleteUtterancesError) -> Self {
match err {
crate::operation::delete_utterances::DeleteUtterancesError::InternalServerException(
inner,
) => Error::InternalServerException(inner),
crate::operation::delete_utterances::DeleteUtterancesError::ThrottlingException(
inner,
) => Error::ThrottlingException(inner),
crate::operation::delete_utterances::DeleteUtterancesError::ValidationException(
inner,
) => Error::ValidationException(inner),
crate::operation::delete_utterances::DeleteUtterancesError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<::aws_smithy_http::result::SdkError<crate::operation::describe_bot::DescribeBotError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::describe_bot::DescribeBotError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_bot::DescribeBotError> for Error {
fn from(err: crate::operation::describe_bot::DescribeBotError) -> Self {
match err {
crate::operation::describe_bot::DescribeBotError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_bot::DescribeBotError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_bot::DescribeBotError::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::operation::describe_bot::DescribeBotError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_bot::DescribeBotError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_bot::DescribeBotError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::describe_bot_alias::DescribeBotAliasError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::describe_bot_alias::DescribeBotAliasError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_bot_alias::DescribeBotAliasError> for Error {
fn from(err: crate::operation::describe_bot_alias::DescribeBotAliasError) -> Self {
match err {
crate::operation::describe_bot_alias::DescribeBotAliasError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_bot_alias::DescribeBotAliasError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_bot_alias::DescribeBotAliasError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::describe_bot_alias::DescribeBotAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_bot_alias::DescribeBotAliasError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_bot_alias::DescribeBotAliasError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::describe_bot_locale::DescribeBotLocaleError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::describe_bot_locale::DescribeBotLocaleError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_bot_locale::DescribeBotLocaleError> for Error {
fn from(err: crate::operation::describe_bot_locale::DescribeBotLocaleError) -> Self {
match err {
crate::operation::describe_bot_locale::DescribeBotLocaleError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_bot_locale::DescribeBotLocaleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_bot_locale::DescribeBotLocaleError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::describe_bot_locale::DescribeBotLocaleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_bot_locale::DescribeBotLocaleError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_bot_locale::DescribeBotLocaleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::describe_bot_recommendation::DescribeBotRecommendationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::describe_bot_recommendation::DescribeBotRecommendationError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_bot_recommendation::DescribeBotRecommendationError> for Error {
fn from(
err: crate::operation::describe_bot_recommendation::DescribeBotRecommendationError,
) -> Self {
match err {
crate::operation::describe_bot_recommendation::DescribeBotRecommendationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_bot_recommendation::DescribeBotRecommendationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_bot_recommendation::DescribeBotRecommendationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_bot_recommendation::DescribeBotRecommendationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_bot_recommendation::DescribeBotRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::describe_bot_version::DescribeBotVersionError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::describe_bot_version::DescribeBotVersionError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_bot_version::DescribeBotVersionError> for Error {
fn from(err: crate::operation::describe_bot_version::DescribeBotVersionError) -> Self {
match err {
crate::operation::describe_bot_version::DescribeBotVersionError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_bot_version::DescribeBotVersionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_bot_version::DescribeBotVersionError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::describe_bot_version::DescribeBotVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_bot_version::DescribeBotVersionError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_bot_version::DescribeBotVersionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_http::result::SdkError<crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError, R>) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build()
),
}
}
}
impl From<crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError> for Error {
fn from(err: crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError) -> Self {
match err {
crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_custom_vocabulary_metadata::DescribeCustomVocabularyMetadataError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::describe_export::DescribeExportError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::describe_export::DescribeExportError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_export::DescribeExportError> for Error {
fn from(err: crate::operation::describe_export::DescribeExportError) -> Self {
match err {
crate::operation::describe_export::DescribeExportError::InternalServerException(
inner,
) => Error::InternalServerException(inner),
crate::operation::describe_export::DescribeExportError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::describe_export::DescribeExportError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_export::DescribeExportError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_export::DescribeExportError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::describe_import::DescribeImportError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::describe_import::DescribeImportError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_import::DescribeImportError> for Error {
fn from(err: crate::operation::describe_import::DescribeImportError) -> Self {
match err {
crate::operation::describe_import::DescribeImportError::InternalServerException(
inner,
) => Error::InternalServerException(inner),
crate::operation::describe_import::DescribeImportError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::describe_import::DescribeImportError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_import::DescribeImportError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_import::DescribeImportError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::describe_intent::DescribeIntentError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::describe_intent::DescribeIntentError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_intent::DescribeIntentError> for Error {
fn from(err: crate::operation::describe_intent::DescribeIntentError) -> Self {
match err {
crate::operation::describe_intent::DescribeIntentError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_intent::DescribeIntentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_intent::DescribeIntentError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::describe_intent::DescribeIntentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_intent::DescribeIntentError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_intent::DescribeIntentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::describe_resource_policy::DescribeResourcePolicyError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::describe_resource_policy::DescribeResourcePolicyError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_resource_policy::DescribeResourcePolicyError> for Error {
fn from(err: crate::operation::describe_resource_policy::DescribeResourcePolicyError) -> Self {
match err {
crate::operation::describe_resource_policy::DescribeResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_resource_policy::DescribeResourcePolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_resource_policy::DescribeResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_resource_policy::DescribeResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_http::result::SdkError<crate::operation::describe_slot::DescribeSlotError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::describe_slot::DescribeSlotError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_slot::DescribeSlotError> for Error {
fn from(err: crate::operation::describe_slot::DescribeSlotError) -> Self {
match err {
crate::operation::describe_slot::DescribeSlotError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_slot::DescribeSlotError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::describe_slot::DescribeSlotError::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::operation::describe_slot::DescribeSlotError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_slot::DescribeSlotError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_slot::DescribeSlotError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::describe_slot_type::DescribeSlotTypeError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::describe_slot_type::DescribeSlotTypeError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_slot_type::DescribeSlotTypeError> for Error {
fn from(err: crate::operation::describe_slot_type::DescribeSlotTypeError) -> Self {
match err {
crate::operation::describe_slot_type::DescribeSlotTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_slot_type::DescribeSlotTypeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_slot_type::DescribeSlotTypeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::describe_slot_type::DescribeSlotTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_slot_type::DescribeSlotTypeError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_slot_type::DescribeSlotTypeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError> for Error {
fn from(
err: crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError,
) -> Self {
match err {
crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_aggregated_utterances::ListAggregatedUtterancesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::list_bot_aliases::ListBotAliasesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::list_bot_aliases::ListBotAliasesError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_bot_aliases::ListBotAliasesError> for Error {
fn from(err: crate::operation::list_bot_aliases::ListBotAliasesError) -> Self {
match err {
crate::operation::list_bot_aliases::ListBotAliasesError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_bot_aliases::ListBotAliasesError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::list_bot_aliases::ListBotAliasesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_bot_aliases::ListBotAliasesError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_bot_aliases::ListBotAliasesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::list_bot_locales::ListBotLocalesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::list_bot_locales::ListBotLocalesError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_bot_locales::ListBotLocalesError> for Error {
fn from(err: crate::operation::list_bot_locales::ListBotLocalesError) -> Self {
match err {
crate::operation::list_bot_locales::ListBotLocalesError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_bot_locales::ListBotLocalesError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::list_bot_locales::ListBotLocalesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_bot_locales::ListBotLocalesError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_bot_locales::ListBotLocalesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::list_bot_recommendations::ListBotRecommendationsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::list_bot_recommendations::ListBotRecommendationsError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_bot_recommendations::ListBotRecommendationsError> for Error {
fn from(err: crate::operation::list_bot_recommendations::ListBotRecommendationsError) -> Self {
match err {
crate::operation::list_bot_recommendations::ListBotRecommendationsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_bot_recommendations::ListBotRecommendationsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_bot_recommendations::ListBotRecommendationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_bot_recommendations::ListBotRecommendationsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_bot_recommendations::ListBotRecommendationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::list_bots::ListBotsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<crate::operation::list_bots::ListBotsError, R>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_bots::ListBotsError> for Error {
fn from(err: crate::operation::list_bots::ListBotsError) -> Self {
match err {
crate::operation::list_bots::ListBotsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_bots::ListBotsError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::list_bots::ListBotsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_bots::ListBotsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_bots::ListBotsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::list_bot_versions::ListBotVersionsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::list_bot_versions::ListBotVersionsError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_bot_versions::ListBotVersionsError> for Error {
fn from(err: crate::operation::list_bot_versions::ListBotVersionsError) -> Self {
match err {
crate::operation::list_bot_versions::ListBotVersionsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_bot_versions::ListBotVersionsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::list_bot_versions::ListBotVersionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_bot_versions::ListBotVersionsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_bot_versions::ListBotVersionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::list_built_in_intents::ListBuiltInIntentsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::list_built_in_intents::ListBuiltInIntentsError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_built_in_intents::ListBuiltInIntentsError> for Error {
fn from(err: crate::operation::list_built_in_intents::ListBuiltInIntentsError) -> Self {
match err {
crate::operation::list_built_in_intents::ListBuiltInIntentsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_built_in_intents::ListBuiltInIntentsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::list_built_in_intents::ListBuiltInIntentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_built_in_intents::ListBuiltInIntentsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_built_in_intents::ListBuiltInIntentsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError> for Error {
fn from(err: crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError) -> Self {
match err {
crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_built_in_slot_types::ListBuiltInSlotTypesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError>
for Error
{
fn from(
err: crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError,
) -> Self {
match err {
crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_custom_vocabulary_items::ListCustomVocabularyItemsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_http::result::SdkError<crate::operation::list_exports::ListExportsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::list_exports::ListExportsError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_exports::ListExportsError> for Error {
fn from(err: crate::operation::list_exports::ListExportsError) -> Self {
match err {
crate::operation::list_exports::ListExportsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_exports::ListExportsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_exports::ListExportsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_exports::ListExportsError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<::aws_smithy_http::result::SdkError<crate::operation::list_imports::ListImportsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::list_imports::ListImportsError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_imports::ListImportsError> for Error {
fn from(err: crate::operation::list_imports::ListImportsError) -> Self {
match err {
crate::operation::list_imports::ListImportsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_imports::ListImportsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_imports::ListImportsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_imports::ListImportsError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<::aws_smithy_http::result::SdkError<crate::operation::list_intents::ListIntentsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::list_intents::ListIntentsError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_intents::ListIntentsError> for Error {
fn from(err: crate::operation::list_intents::ListIntentsError) -> Self {
match err {
crate::operation::list_intents::ListIntentsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_intents::ListIntentsError::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::operation::list_intents::ListIntentsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_intents::ListIntentsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_intents::ListIntentsError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::list_recommended_intents::ListRecommendedIntentsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::list_recommended_intents::ListRecommendedIntentsError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_recommended_intents::ListRecommendedIntentsError> for Error {
fn from(err: crate::operation::list_recommended_intents::ListRecommendedIntentsError) -> Self {
match err {
crate::operation::list_recommended_intents::ListRecommendedIntentsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_recommended_intents::ListRecommendedIntentsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_recommended_intents::ListRecommendedIntentsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::list_recommended_intents::ListRecommendedIntentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_recommended_intents::ListRecommendedIntentsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_recommended_intents::ListRecommendedIntentsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::list_slots::ListSlotsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<crate::operation::list_slots::ListSlotsError, R>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_slots::ListSlotsError> for Error {
fn from(err: crate::operation::list_slots::ListSlotsError) -> Self {
match err {
crate::operation::list_slots::ListSlotsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_slots::ListSlotsError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::list_slots::ListSlotsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_slots::ListSlotsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_slots::ListSlotsError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::list_slot_types::ListSlotTypesError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::list_slot_types::ListSlotTypesError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_slot_types::ListSlotTypesError> for Error {
fn from(err: crate::operation::list_slot_types::ListSlotTypesError) -> Self {
match err {
crate::operation::list_slot_types::ListSlotTypesError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_slot_types::ListSlotTypesError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::list_slot_types::ListSlotTypesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_slot_types::ListSlotTypesError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_slot_types::ListSlotTypesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::list_tags_for_resource::ListTagsForResourceError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::list_tags_for_resource::ListTagsForResourceError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
match err {
crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError>
for Error
{
fn from(
err: crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError,
) -> Self {
match err {
crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::search_associated_transcripts::SearchAssociatedTranscriptsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::start_bot_recommendation::StartBotRecommendationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::start_bot_recommendation::StartBotRecommendationError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::start_bot_recommendation::StartBotRecommendationError> for Error {
fn from(err: crate::operation::start_bot_recommendation::StartBotRecommendationError) -> Self {
match err {
crate::operation::start_bot_recommendation::StartBotRecommendationError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::start_bot_recommendation::StartBotRecommendationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::start_bot_recommendation::StartBotRecommendationError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::start_bot_recommendation::StartBotRecommendationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::start_bot_recommendation::StartBotRecommendationError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::start_bot_recommendation::StartBotRecommendationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::start_bot_recommendation::StartBotRecommendationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::start_bot_recommendation::StartBotRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_http::result::SdkError<crate::operation::start_import::StartImportError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::start_import::StartImportError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::start_import::StartImportError> for Error {
fn from(err: crate::operation::start_import::StartImportError) -> Self {
match err {
crate::operation::start_import::StartImportError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::start_import::StartImportError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::start_import::StartImportError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::start_import::StartImportError::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::operation::start_import::StartImportError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::start_import::StartImportError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::start_import::StartImportError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::stop_bot_recommendation::StopBotRecommendationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::stop_bot_recommendation::StopBotRecommendationError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::stop_bot_recommendation::StopBotRecommendationError> for Error {
fn from(err: crate::operation::stop_bot_recommendation::StopBotRecommendationError) -> Self {
match err {
crate::operation::stop_bot_recommendation::StopBotRecommendationError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::stop_bot_recommendation::StopBotRecommendationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::stop_bot_recommendation::StopBotRecommendationError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::stop_bot_recommendation::StopBotRecommendationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::stop_bot_recommendation::StopBotRecommendationError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::stop_bot_recommendation::StopBotRecommendationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::stop_bot_recommendation::StopBotRecommendationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::stop_bot_recommendation::StopBotRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_http::result::SdkError<crate::operation::tag_resource::TagResourceError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::tag_resource::TagResourceError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::tag_resource::TagResourceError> for Error {
fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
match err {
crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::tag_resource::TagResourceError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::tag_resource::TagResourceError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::untag_resource::UntagResourceError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::untag_resource::UntagResourceError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::untag_resource::UntagResourceError> for Error {
fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
match err {
crate::operation::untag_resource::UntagResourceError::InternalServerException(
inner,
) => Error::InternalServerException(inner),
crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::update_bot::UpdateBotError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<crate::operation::update_bot::UpdateBotError, R>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::update_bot::UpdateBotError> for Error {
fn from(err: crate::operation::update_bot::UpdateBotError) -> Self {
match err {
crate::operation::update_bot::UpdateBotError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::update_bot::UpdateBotError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::update_bot::UpdateBotError::PreconditionFailedException(inner) => {
Error::PreconditionFailedException(inner)
}
crate::operation::update_bot::UpdateBotError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::update_bot::UpdateBotError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_bot::UpdateBotError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::update_bot::UpdateBotError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::update_bot_alias::UpdateBotAliasError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::update_bot_alias::UpdateBotAliasError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::update_bot_alias::UpdateBotAliasError> for Error {
fn from(err: crate::operation::update_bot_alias::UpdateBotAliasError) -> Self {
match err {
crate::operation::update_bot_alias::UpdateBotAliasError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_bot_alias::UpdateBotAliasError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_bot_alias::UpdateBotAliasError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::update_bot_alias::UpdateBotAliasError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::update_bot_alias::UpdateBotAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_bot_alias::UpdateBotAliasError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_bot_alias::UpdateBotAliasError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::update_bot_locale::UpdateBotLocaleError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::update_bot_locale::UpdateBotLocaleError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::update_bot_locale::UpdateBotLocaleError> for Error {
fn from(err: crate::operation::update_bot_locale::UpdateBotLocaleError) -> Self {
match err {
crate::operation::update_bot_locale::UpdateBotLocaleError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_bot_locale::UpdateBotLocaleError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_bot_locale::UpdateBotLocaleError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::update_bot_locale::UpdateBotLocaleError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::update_bot_locale::UpdateBotLocaleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_bot_locale::UpdateBotLocaleError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_bot_locale::UpdateBotLocaleError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::update_bot_recommendation::UpdateBotRecommendationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::update_bot_recommendation::UpdateBotRecommendationError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::update_bot_recommendation::UpdateBotRecommendationError> for Error {
fn from(
err: crate::operation::update_bot_recommendation::UpdateBotRecommendationError,
) -> Self {
match err {
crate::operation::update_bot_recommendation::UpdateBotRecommendationError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_bot_recommendation::UpdateBotRecommendationError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_bot_recommendation::UpdateBotRecommendationError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::update_bot_recommendation::UpdateBotRecommendationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_bot_recommendation::UpdateBotRecommendationError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::update_bot_recommendation::UpdateBotRecommendationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_bot_recommendation::UpdateBotRecommendationError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_bot_recommendation::UpdateBotRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_http::result::SdkError<crate::operation::update_export::UpdateExportError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::update_export::UpdateExportError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::update_export::UpdateExportError> for Error {
fn from(err: crate::operation::update_export::UpdateExportError) -> Self {
match err {
crate::operation::update_export::UpdateExportError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::update_export::UpdateExportError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::update_export::UpdateExportError::ResourceNotFoundException(
inner,
) => Error::ResourceNotFoundException(inner),
crate::operation::update_export::UpdateExportError::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::operation::update_export::UpdateExportError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_export::UpdateExportError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::update_export::UpdateExportError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<::aws_smithy_http::result::SdkError<crate::operation::update_intent::UpdateIntentError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::update_intent::UpdateIntentError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::update_intent::UpdateIntentError> for Error {
fn from(err: crate::operation::update_intent::UpdateIntentError) -> Self {
match err {
crate::operation::update_intent::UpdateIntentError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::update_intent::UpdateIntentError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::update_intent::UpdateIntentError::PreconditionFailedException(
inner,
) => Error::PreconditionFailedException(inner),
crate::operation::update_intent::UpdateIntentError::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::operation::update_intent::UpdateIntentError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_intent::UpdateIntentError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::update_intent::UpdateIntentError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::update_resource_policy::UpdateResourcePolicyError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::update_resource_policy::UpdateResourcePolicyError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::update_resource_policy::UpdateResourcePolicyError> for Error {
fn from(err: crate::operation::update_resource_policy::UpdateResourcePolicyError) -> Self {
match err {
crate::operation::update_resource_policy::UpdateResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_resource_policy::UpdateResourcePolicyError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::update_resource_policy::UpdateResourcePolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_resource_policy::UpdateResourcePolicyError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::update_resource_policy::UpdateResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_resource_policy::UpdateResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_resource_policy::UpdateResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_http::result::SdkError<crate::operation::update_slot::UpdateSlotError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<crate::operation::update_slot::UpdateSlotError, R>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::update_slot::UpdateSlotError> for Error {
fn from(err: crate::operation::update_slot::UpdateSlotError) -> Self {
match err {
crate::operation::update_slot::UpdateSlotError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::update_slot::UpdateSlotError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::update_slot::UpdateSlotError::PreconditionFailedException(inner) => {
Error::PreconditionFailedException(inner)
}
crate::operation::update_slot::UpdateSlotError::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::operation::update_slot::UpdateSlotError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_slot::UpdateSlotError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::update_slot::UpdateSlotError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_http::result::SdkError<
crate::operation::update_slot_type::UpdateSlotTypeError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_http::result::SdkError<
crate::operation::update_slot_type::UpdateSlotTypeError,
R,
>,
) -> Self {
match err {
::aws_smithy_http::result::SdkError::ServiceError(context) => {
Self::from(context.into_err())
}
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(
::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err)
.clone(),
)
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::update_slot_type::UpdateSlotTypeError> for Error {
fn from(err: crate::operation::update_slot_type::UpdateSlotTypeError) -> Self {
match err {
crate::operation::update_slot_type::UpdateSlotTypeError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_slot_type::UpdateSlotTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_slot_type::UpdateSlotTypeError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
crate::operation::update_slot_type::UpdateSlotTypeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::update_slot_type::UpdateSlotTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_slot_type::UpdateSlotTypeError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_slot_type::UpdateSlotTypeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl ::std::error::Error for Error {
fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
match self {
Error::ConflictException(inner) => inner.source(),
Error::InternalServerException(inner) => inner.source(),
Error::PreconditionFailedException(inner) => inner.source(),
Error::ResourceNotFoundException(inner) => inner.source(),
Error::ServiceQuotaExceededException(inner) => inner.source(),
Error::ThrottlingException(inner) => inner.source(),
Error::ValidationException(inner) => inner.source(),
Error::Unhandled(inner) => inner.source(),
}
}
}
impl ::aws_http::request_id::RequestId for Error {
fn request_id(&self) -> Option<&str> {
match self {
Self::ConflictException(e) => e.request_id(),
Self::InternalServerException(e) => e.request_id(),
Self::PreconditionFailedException(e) => e.request_id(),
Self::ResourceNotFoundException(e) => e.request_id(),
Self::ServiceQuotaExceededException(e) => e.request_id(),
Self::ThrottlingException(e) => e.request_id(),
Self::ValidationException(e) => e.request_id(),
Self::Unhandled(e) => e.request_id(),
}
}
}