#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
#[allow(missing_docs)] InternalServerError(crate::types::error::InternalServerError),
#[allow(missing_docs)] ResourceNotFound(crate::types::error::ResourceNotFound),
WebhookFailed(crate::types::error::WebhookFailed),
#[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
variable wildcard pattern and check `.code()`:
\
`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
\
See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
Unhandled(crate::error::sealed_unhandled::Unhandled)
}
impl ::std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::InternalServerError(inner) => inner.fmt(f),
Error::ResourceNotFound(inner) => inner.fmt(f),
Error::WebhookFailed(inner) => inner.fmt(f),
Error::Unhandled(_) => if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
write!(f, "unhandled error ({code})")
} else {
f.write_str("unhandled error")
}
}
}
}
impl From<::aws_smithy_types::error::operation::BuildError> for Error {
fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
Error::Unhandled(crate::error::sealed_unhandled::Unhandled { source: value.into(), meta: ::std::default::Default::default() })
}
}
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
match self {
Self::InternalServerError(inner) => inner.meta(),
Self::ResourceNotFound(inner) => inner.meta(),
Self::WebhookFailed(inner) => inner.meta(),
Self::Unhandled(inner) => &inner.meta,
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_members_to_group::AddMembersToGroupError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_members_to_group::AddMembersToGroupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::add_members_to_group::AddMembersToGroupError> for Error {
fn from(err: crate::operation::add_members_to_group::AddMembersToGroupError) -> Self {
match err {
crate::operation::add_members_to_group::AddMembersToGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::add_members_to_group::AddMembersToGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::add_members_to_group::AddMembersToGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::applicable_variants::ApplicableVariantsError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::applicable_variants::ApplicableVariantsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::applicable_variants::ApplicableVariantsError> for Error {
fn from(err: crate::operation::applicable_variants::ApplicableVariantsError) -> Self {
match err {
crate::operation::applicable_variants::ApplicableVariantsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::applicable_variants::ApplicableVariantsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::bulk_operation::BulkOperationError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::bulk_operation::BulkOperationError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::bulk_operation::BulkOperationError> for Error {
fn from(err: crate::operation::bulk_operation::BulkOperationError) -> Self {
match err {
crate::operation::bulk_operation::BulkOperationError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::bulk_operation::BulkOperationError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::bulk_operation::BulkOperationError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::bulk_operation::BulkOperationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::conclude_experiment::ConcludeExperimentError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::conclude_experiment::ConcludeExperimentError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::conclude_experiment::ConcludeExperimentError> for Error {
fn from(err: crate::operation::conclude_experiment::ConcludeExperimentError) -> Self {
match err {
crate::operation::conclude_experiment::ConcludeExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::conclude_experiment::ConcludeExperimentError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::conclude_experiment::ConcludeExperimentError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::conclude_experiment::ConcludeExperimentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_context::CreateContextError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_context::CreateContextError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::create_context::CreateContextError> for Error {
fn from(err: crate::operation::create_context::CreateContextError) -> Self {
match err {
crate::operation::create_context::CreateContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::create_context::CreateContextError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::create_context::CreateContextError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_context::CreateContextError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_default_config::CreateDefaultConfigError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_default_config::CreateDefaultConfigError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::create_default_config::CreateDefaultConfigError> for Error {
fn from(err: crate::operation::create_default_config::CreateDefaultConfigError) -> Self {
match err {
crate::operation::create_default_config::CreateDefaultConfigError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::create_default_config::CreateDefaultConfigError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_default_config::CreateDefaultConfigError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dimension::CreateDimensionError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dimension::CreateDimensionError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::create_dimension::CreateDimensionError> for Error {
fn from(err: crate::operation::create_dimension::CreateDimensionError) -> Self {
match err {
crate::operation::create_dimension::CreateDimensionError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::create_dimension::CreateDimensionError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_dimension::CreateDimensionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_experiment::CreateExperimentError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_experiment::CreateExperimentError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::create_experiment::CreateExperimentError> for Error {
fn from(err: crate::operation::create_experiment::CreateExperimentError) -> Self {
match err {
crate::operation::create_experiment::CreateExperimentError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::create_experiment::CreateExperimentError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_experiment::CreateExperimentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_experiment_group::CreateExperimentGroupError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_experiment_group::CreateExperimentGroupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::create_experiment_group::CreateExperimentGroupError> for Error {
fn from(err: crate::operation::create_experiment_group::CreateExperimentGroupError) -> Self {
match err {
crate::operation::create_experiment_group::CreateExperimentGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_experiment_group::CreateExperimentGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_function::CreateFunctionError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_function::CreateFunctionError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::create_function::CreateFunctionError> for Error {
fn from(err: crate::operation::create_function::CreateFunctionError) -> Self {
match err {
crate::operation::create_function::CreateFunctionError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_function::CreateFunctionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_organisation::CreateOrganisationError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_organisation::CreateOrganisationError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::create_organisation::CreateOrganisationError> for Error {
fn from(err: crate::operation::create_organisation::CreateOrganisationError) -> Self {
match err {
crate::operation::create_organisation::CreateOrganisationError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_organisation::CreateOrganisationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_secret::CreateSecretError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_secret::CreateSecretError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::create_secret::CreateSecretError> for Error {
fn from(err: crate::operation::create_secret::CreateSecretError) -> Self {
match err {
crate::operation::create_secret::CreateSecretError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_secret::CreateSecretError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_type_templates::CreateTypeTemplatesError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_type_templates::CreateTypeTemplatesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::create_type_templates::CreateTypeTemplatesError> for Error {
fn from(err: crate::operation::create_type_templates::CreateTypeTemplatesError) -> Self {
match err {
crate::operation::create_type_templates::CreateTypeTemplatesError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_type_templates::CreateTypeTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_variable::CreateVariableError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_variable::CreateVariableError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::create_variable::CreateVariableError> for Error {
fn from(err: crate::operation::create_variable::CreateVariableError) -> Self {
match err {
crate::operation::create_variable::CreateVariableError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_variable::CreateVariableError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_webhook::CreateWebhookError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_webhook::CreateWebhookError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::create_webhook::CreateWebhookError> for Error {
fn from(err: crate::operation::create_webhook::CreateWebhookError) -> Self {
match err {
crate::operation::create_webhook::CreateWebhookError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_webhook::CreateWebhookError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workspace::CreateWorkspaceError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workspace::CreateWorkspaceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::create_workspace::CreateWorkspaceError> for Error {
fn from(err: crate::operation::create_workspace::CreateWorkspaceError) -> Self {
match err {
crate::operation::create_workspace::CreateWorkspaceError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::create_workspace::CreateWorkspaceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_context::DeleteContextError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_context::DeleteContextError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::delete_context::DeleteContextError> for Error {
fn from(err: crate::operation::delete_context::DeleteContextError) -> Self {
match err {
crate::operation::delete_context::DeleteContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::delete_context::DeleteContextError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::delete_context::DeleteContextError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_context::DeleteContextError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_default_config::DeleteDefaultConfigError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_default_config::DeleteDefaultConfigError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::delete_default_config::DeleteDefaultConfigError> for Error {
fn from(err: crate::operation::delete_default_config::DeleteDefaultConfigError) -> Self {
match err {
crate::operation::delete_default_config::DeleteDefaultConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::delete_default_config::DeleteDefaultConfigError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::delete_default_config::DeleteDefaultConfigError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_default_config::DeleteDefaultConfigError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dimension::DeleteDimensionError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dimension::DeleteDimensionError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::delete_dimension::DeleteDimensionError> for Error {
fn from(err: crate::operation::delete_dimension::DeleteDimensionError) -> Self {
match err {
crate::operation::delete_dimension::DeleteDimensionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::delete_dimension::DeleteDimensionError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::delete_dimension::DeleteDimensionError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_dimension::DeleteDimensionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_experiment_group::DeleteExperimentGroupError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_experiment_group::DeleteExperimentGroupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::delete_experiment_group::DeleteExperimentGroupError> for Error {
fn from(err: crate::operation::delete_experiment_group::DeleteExperimentGroupError) -> Self {
match err {
crate::operation::delete_experiment_group::DeleteExperimentGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::delete_experiment_group::DeleteExperimentGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_experiment_group::DeleteExperimentGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_function::DeleteFunctionError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_function::DeleteFunctionError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::delete_function::DeleteFunctionError> for Error {
fn from(err: crate::operation::delete_function::DeleteFunctionError) -> Self {
match err {
crate::operation::delete_function::DeleteFunctionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::delete_function::DeleteFunctionError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_function::DeleteFunctionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_secret::DeleteSecretError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_secret::DeleteSecretError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::delete_secret::DeleteSecretError> for Error {
fn from(err: crate::operation::delete_secret::DeleteSecretError) -> Self {
match err {
crate::operation::delete_secret::DeleteSecretError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::delete_secret::DeleteSecretError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_secret::DeleteSecretError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_type_templates::DeleteTypeTemplatesError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_type_templates::DeleteTypeTemplatesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::delete_type_templates::DeleteTypeTemplatesError> for Error {
fn from(err: crate::operation::delete_type_templates::DeleteTypeTemplatesError) -> Self {
match err {
crate::operation::delete_type_templates::DeleteTypeTemplatesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::delete_type_templates::DeleteTypeTemplatesError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_type_templates::DeleteTypeTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_variable::DeleteVariableError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_variable::DeleteVariableError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::delete_variable::DeleteVariableError> for Error {
fn from(err: crate::operation::delete_variable::DeleteVariableError) -> Self {
match err {
crate::operation::delete_variable::DeleteVariableError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::delete_variable::DeleteVariableError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_variable::DeleteVariableError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_webhook::DeleteWebhookError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_webhook::DeleteWebhookError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::delete_webhook::DeleteWebhookError> for Error {
fn from(err: crate::operation::delete_webhook::DeleteWebhookError) -> Self {
match err {
crate::operation::delete_webhook::DeleteWebhookError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::delete_webhook::DeleteWebhookError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::delete_webhook::DeleteWebhookError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::discard_experiment::DiscardExperimentError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::discard_experiment::DiscardExperimentError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::discard_experiment::DiscardExperimentError> for Error {
fn from(err: crate::operation::discard_experiment::DiscardExperimentError) -> Self {
match err {
crate::operation::discard_experiment::DiscardExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::discard_experiment::DiscardExperimentError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::discard_experiment::DiscardExperimentError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::discard_experiment::DiscardExperimentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_config::GetConfigError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_config::GetConfigError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_config::GetConfigError> for Error {
fn from(err: crate::operation::get_config::GetConfigError) -> Self {
match err {
crate::operation::get_config::GetConfigError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_config::GetConfigError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_config_json::GetConfigJsonError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_config_json::GetConfigJsonError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_config_json::GetConfigJsonError> for Error {
fn from(err: crate::operation::get_config_json::GetConfigJsonError) -> Self {
match err {
crate::operation::get_config_json::GetConfigJsonError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_config_json::GetConfigJsonError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_config_toml::GetConfigTomlError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_config_toml::GetConfigTomlError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_config_toml::GetConfigTomlError> for Error {
fn from(err: crate::operation::get_config_toml::GetConfigTomlError) -> Self {
match err {
crate::operation::get_config_toml::GetConfigTomlError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_config_toml::GetConfigTomlError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_context::GetContextError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_context::GetContextError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_context::GetContextError> for Error {
fn from(err: crate::operation::get_context::GetContextError) -> Self {
match err {
crate::operation::get_context::GetContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::get_context::GetContextError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_context::GetContextError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_context_from_condition::GetContextFromConditionError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_context_from_condition::GetContextFromConditionError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_context_from_condition::GetContextFromConditionError> for Error {
fn from(err: crate::operation::get_context_from_condition::GetContextFromConditionError) -> Self {
match err {
crate::operation::get_context_from_condition::GetContextFromConditionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::get_context_from_condition::GetContextFromConditionError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_context_from_condition::GetContextFromConditionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_default_config::GetDefaultConfigError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_default_config::GetDefaultConfigError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_default_config::GetDefaultConfigError> for Error {
fn from(err: crate::operation::get_default_config::GetDefaultConfigError) -> Self {
match err {
crate::operation::get_default_config::GetDefaultConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::get_default_config::GetDefaultConfigError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_default_config::GetDefaultConfigError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dimension::GetDimensionError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dimension::GetDimensionError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_dimension::GetDimensionError> for Error {
fn from(err: crate::operation::get_dimension::GetDimensionError) -> Self {
match err {
crate::operation::get_dimension::GetDimensionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::get_dimension::GetDimensionError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_dimension::GetDimensionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_experiment::GetExperimentError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_experiment::GetExperimentError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_experiment::GetExperimentError> for Error {
fn from(err: crate::operation::get_experiment::GetExperimentError) -> Self {
match err {
crate::operation::get_experiment::GetExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::get_experiment::GetExperimentError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_experiment::GetExperimentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_experiment_config::GetExperimentConfigError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_experiment_config::GetExperimentConfigError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_experiment_config::GetExperimentConfigError> for Error {
fn from(err: crate::operation::get_experiment_config::GetExperimentConfigError) -> Self {
match err {
crate::operation::get_experiment_config::GetExperimentConfigError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_experiment_config::GetExperimentConfigError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_experiment_group::GetExperimentGroupError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_experiment_group::GetExperimentGroupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_experiment_group::GetExperimentGroupError> for Error {
fn from(err: crate::operation::get_experiment_group::GetExperimentGroupError) -> Self {
match err {
crate::operation::get_experiment_group::GetExperimentGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::get_experiment_group::GetExperimentGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_experiment_group::GetExperimentGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_function::GetFunctionError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_function::GetFunctionError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_function::GetFunctionError> for Error {
fn from(err: crate::operation::get_function::GetFunctionError) -> Self {
match err {
crate::operation::get_function::GetFunctionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::get_function::GetFunctionError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_function::GetFunctionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_organisation::GetOrganisationError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_organisation::GetOrganisationError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_organisation::GetOrganisationError> for Error {
fn from(err: crate::operation::get_organisation::GetOrganisationError) -> Self {
match err {
crate::operation::get_organisation::GetOrganisationError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::get_organisation::GetOrganisationError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_organisation::GetOrganisationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resolved_config::GetResolvedConfigError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resolved_config::GetResolvedConfigError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_resolved_config::GetResolvedConfigError> for Error {
fn from(err: crate::operation::get_resolved_config::GetResolvedConfigError) -> Self {
match err {
crate::operation::get_resolved_config::GetResolvedConfigError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_resolved_config::GetResolvedConfigError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resolved_config_with_identifier::GetResolvedConfigWithIdentifierError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resolved_config_with_identifier::GetResolvedConfigWithIdentifierError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_resolved_config_with_identifier::GetResolvedConfigWithIdentifierError> for Error {
fn from(err: crate::operation::get_resolved_config_with_identifier::GetResolvedConfigWithIdentifierError) -> Self {
match err {
crate::operation::get_resolved_config_with_identifier::GetResolvedConfigWithIdentifierError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_resolved_config_with_identifier::GetResolvedConfigWithIdentifierError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_secret::GetSecretError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_secret::GetSecretError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_secret::GetSecretError> for Error {
fn from(err: crate::operation::get_secret::GetSecretError) -> Self {
match err {
crate::operation::get_secret::GetSecretError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::get_secret::GetSecretError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_secret::GetSecretError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_type_template::GetTypeTemplateError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_type_template::GetTypeTemplateError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_type_template::GetTypeTemplateError> for Error {
fn from(err: crate::operation::get_type_template::GetTypeTemplateError) -> Self {
match err {
crate::operation::get_type_template::GetTypeTemplateError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::get_type_template::GetTypeTemplateError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_type_template::GetTypeTemplateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_type_templates_list::GetTypeTemplatesListError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_type_templates_list::GetTypeTemplatesListError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_type_templates_list::GetTypeTemplatesListError> for Error {
fn from(err: crate::operation::get_type_templates_list::GetTypeTemplatesListError) -> Self {
match err {
crate::operation::get_type_templates_list::GetTypeTemplatesListError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_type_templates_list::GetTypeTemplatesListError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_variable::GetVariableError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_variable::GetVariableError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_variable::GetVariableError> for Error {
fn from(err: crate::operation::get_variable::GetVariableError) -> Self {
match err {
crate::operation::get_variable::GetVariableError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::get_variable::GetVariableError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_variable::GetVariableError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_version::GetVersionError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_version::GetVersionError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_version::GetVersionError> for Error {
fn from(err: crate::operation::get_version::GetVersionError) -> Self {
match err {
crate::operation::get_version::GetVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::get_version::GetVersionError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_version::GetVersionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_webhook::GetWebhookError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_webhook::GetWebhookError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_webhook::GetWebhookError> for Error {
fn from(err: crate::operation::get_webhook::GetWebhookError) -> Self {
match err {
crate::operation::get_webhook::GetWebhookError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::get_webhook::GetWebhookError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_webhook::GetWebhookError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_webhook_by_event::GetWebhookByEventError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_webhook_by_event::GetWebhookByEventError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_webhook_by_event::GetWebhookByEventError> for Error {
fn from(err: crate::operation::get_webhook_by_event::GetWebhookByEventError) -> Self {
match err {
crate::operation::get_webhook_by_event::GetWebhookByEventError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::get_webhook_by_event::GetWebhookByEventError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_webhook_by_event::GetWebhookByEventError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workspace::GetWorkspaceError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workspace::GetWorkspaceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::get_workspace::GetWorkspaceError> for Error {
fn from(err: crate::operation::get_workspace::GetWorkspaceError) -> Self {
match err {
crate::operation::get_workspace::GetWorkspaceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::get_workspace::GetWorkspaceError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::get_workspace::GetWorkspaceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_audit_logs::ListAuditLogsError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_audit_logs::ListAuditLogsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::list_audit_logs::ListAuditLogsError> for Error {
fn from(err: crate::operation::list_audit_logs::ListAuditLogsError) -> Self {
match err {
crate::operation::list_audit_logs::ListAuditLogsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_audit_logs::ListAuditLogsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contexts::ListContextsError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contexts::ListContextsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::list_contexts::ListContextsError> for Error {
fn from(err: crate::operation::list_contexts::ListContextsError) -> Self {
match err {
crate::operation::list_contexts::ListContextsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_contexts::ListContextsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_default_configs::ListDefaultConfigsError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_default_configs::ListDefaultConfigsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::list_default_configs::ListDefaultConfigsError> for Error {
fn from(err: crate::operation::list_default_configs::ListDefaultConfigsError) -> Self {
match err {
crate::operation::list_default_configs::ListDefaultConfigsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_default_configs::ListDefaultConfigsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dimensions::ListDimensionsError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dimensions::ListDimensionsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::list_dimensions::ListDimensionsError> for Error {
fn from(err: crate::operation::list_dimensions::ListDimensionsError) -> Self {
match err {
crate::operation::list_dimensions::ListDimensionsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_dimensions::ListDimensionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_experiment::ListExperimentError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_experiment::ListExperimentError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::list_experiment::ListExperimentError> for Error {
fn from(err: crate::operation::list_experiment::ListExperimentError) -> Self {
match err {
crate::operation::list_experiment::ListExperimentError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_experiment::ListExperimentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_experiment_groups::ListExperimentGroupsError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_experiment_groups::ListExperimentGroupsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::list_experiment_groups::ListExperimentGroupsError> for Error {
fn from(err: crate::operation::list_experiment_groups::ListExperimentGroupsError) -> Self {
match err {
crate::operation::list_experiment_groups::ListExperimentGroupsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_experiment_groups::ListExperimentGroupsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_function::ListFunctionError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_function::ListFunctionError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::list_function::ListFunctionError> for Error {
fn from(err: crate::operation::list_function::ListFunctionError) -> Self {
match err {
crate::operation::list_function::ListFunctionError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_function::ListFunctionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_organisation::ListOrganisationError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_organisation::ListOrganisationError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::list_organisation::ListOrganisationError> for Error {
fn from(err: crate::operation::list_organisation::ListOrganisationError) -> Self {
match err {
crate::operation::list_organisation::ListOrganisationError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_organisation::ListOrganisationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_secrets::ListSecretsError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_secrets::ListSecretsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::list_secrets::ListSecretsError> for Error {
fn from(err: crate::operation::list_secrets::ListSecretsError) -> Self {
match err {
crate::operation::list_secrets::ListSecretsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_secrets::ListSecretsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_variables::ListVariablesError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_variables::ListVariablesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::list_variables::ListVariablesError> for Error {
fn from(err: crate::operation::list_variables::ListVariablesError) -> Self {
match err {
crate::operation::list_variables::ListVariablesError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_variables::ListVariablesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_versions::ListVersionsError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_versions::ListVersionsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::list_versions::ListVersionsError> for Error {
fn from(err: crate::operation::list_versions::ListVersionsError) -> Self {
match err {
crate::operation::list_versions::ListVersionsError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_versions::ListVersionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_webhook::ListWebhookError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_webhook::ListWebhookError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::list_webhook::ListWebhookError> for Error {
fn from(err: crate::operation::list_webhook::ListWebhookError) -> Self {
match err {
crate::operation::list_webhook::ListWebhookError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_webhook::ListWebhookError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workspace::ListWorkspaceError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workspace::ListWorkspaceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::list_workspace::ListWorkspaceError> for Error {
fn from(err: crate::operation::list_workspace::ListWorkspaceError) -> Self {
match err {
crate::operation::list_workspace::ListWorkspaceError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::list_workspace::ListWorkspaceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::migrate_workspace_schema::MigrateWorkspaceSchemaError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::migrate_workspace_schema::MigrateWorkspaceSchemaError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::migrate_workspace_schema::MigrateWorkspaceSchemaError> for Error {
fn from(err: crate::operation::migrate_workspace_schema::MigrateWorkspaceSchemaError) -> Self {
match err {
crate::operation::migrate_workspace_schema::MigrateWorkspaceSchemaError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::migrate_workspace_schema::MigrateWorkspaceSchemaError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::migrate_workspace_schema::MigrateWorkspaceSchemaError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_context::MoveContextError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::move_context::MoveContextError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::move_context::MoveContextError> for Error {
fn from(err: crate::operation::move_context::MoveContextError) -> Self {
match err {
crate::operation::move_context::MoveContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::move_context::MoveContextError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::move_context::MoveContextError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::move_context::MoveContextError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::pause_experiment::PauseExperimentError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::pause_experiment::PauseExperimentError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::pause_experiment::PauseExperimentError> for Error {
fn from(err: crate::operation::pause_experiment::PauseExperimentError) -> Self {
match err {
crate::operation::pause_experiment::PauseExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::pause_experiment::PauseExperimentError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::pause_experiment::PauseExperimentError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::pause_experiment::PauseExperimentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::publish::PublishError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::publish::PublishError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::publish::PublishError> for Error {
fn from(err: crate::operation::publish::PublishError) -> Self {
match err {
crate::operation::publish::PublishError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::publish::PublishError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::publish::PublishError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::ramp_experiment::RampExperimentError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::ramp_experiment::RampExperimentError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::ramp_experiment::RampExperimentError> for Error {
fn from(err: crate::operation::ramp_experiment::RampExperimentError) -> Self {
match err {
crate::operation::ramp_experiment::RampExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::ramp_experiment::RampExperimentError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::ramp_experiment::RampExperimentError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::ramp_experiment::RampExperimentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_members_from_group::RemoveMembersFromGroupError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_members_from_group::RemoveMembersFromGroupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::remove_members_from_group::RemoveMembersFromGroupError> for Error {
fn from(err: crate::operation::remove_members_from_group::RemoveMembersFromGroupError) -> Self {
match err {
crate::operation::remove_members_from_group::RemoveMembersFromGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::remove_members_from_group::RemoveMembersFromGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::remove_members_from_group::RemoveMembersFromGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resume_experiment::ResumeExperimentError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resume_experiment::ResumeExperimentError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::resume_experiment::ResumeExperimentError> for Error {
fn from(err: crate::operation::resume_experiment::ResumeExperimentError) -> Self {
match err {
crate::operation::resume_experiment::ResumeExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::resume_experiment::ResumeExperimentError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::resume_experiment::ResumeExperimentError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::resume_experiment::ResumeExperimentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rotate_master_encryption_key::RotateMasterEncryptionKeyError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rotate_master_encryption_key::RotateMasterEncryptionKeyError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::rotate_master_encryption_key::RotateMasterEncryptionKeyError> for Error {
fn from(err: crate::operation::rotate_master_encryption_key::RotateMasterEncryptionKeyError) -> Self {
match err {
crate::operation::rotate_master_encryption_key::RotateMasterEncryptionKeyError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::rotate_master_encryption_key::RotateMasterEncryptionKeyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rotate_workspace_encryption_key::RotateWorkspaceEncryptionKeyError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rotate_workspace_encryption_key::RotateWorkspaceEncryptionKeyError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::rotate_workspace_encryption_key::RotateWorkspaceEncryptionKeyError> for Error {
fn from(err: crate::operation::rotate_workspace_encryption_key::RotateWorkspaceEncryptionKeyError) -> Self {
match err {
crate::operation::rotate_workspace_encryption_key::RotateWorkspaceEncryptionKeyError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::rotate_workspace_encryption_key::RotateWorkspaceEncryptionKeyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test::TestError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test::TestError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::test::TestError> for Error {
fn from(err: crate::operation::test::TestError) -> Self {
match err {
crate::operation::test::TestError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::test::TestError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::test::TestError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_default_config::UpdateDefaultConfigError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_default_config::UpdateDefaultConfigError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::update_default_config::UpdateDefaultConfigError> for Error {
fn from(err: crate::operation::update_default_config::UpdateDefaultConfigError) -> Self {
match err {
crate::operation::update_default_config::UpdateDefaultConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::update_default_config::UpdateDefaultConfigError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::update_default_config::UpdateDefaultConfigError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_default_config::UpdateDefaultConfigError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dimension::UpdateDimensionError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dimension::UpdateDimensionError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::update_dimension::UpdateDimensionError> for Error {
fn from(err: crate::operation::update_dimension::UpdateDimensionError) -> Self {
match err {
crate::operation::update_dimension::UpdateDimensionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::update_dimension::UpdateDimensionError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::update_dimension::UpdateDimensionError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_dimension::UpdateDimensionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_experiment_group::UpdateExperimentGroupError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_experiment_group::UpdateExperimentGroupError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::update_experiment_group::UpdateExperimentGroupError> for Error {
fn from(err: crate::operation::update_experiment_group::UpdateExperimentGroupError) -> Self {
match err {
crate::operation::update_experiment_group::UpdateExperimentGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::update_experiment_group::UpdateExperimentGroupError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_experiment_group::UpdateExperimentGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_function::UpdateFunctionError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_function::UpdateFunctionError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::update_function::UpdateFunctionError> for Error {
fn from(err: crate::operation::update_function::UpdateFunctionError) -> Self {
match err {
crate::operation::update_function::UpdateFunctionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::update_function::UpdateFunctionError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_function::UpdateFunctionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_organisation::UpdateOrganisationError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_organisation::UpdateOrganisationError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::update_organisation::UpdateOrganisationError> for Error {
fn from(err: crate::operation::update_organisation::UpdateOrganisationError) -> Self {
match err {
crate::operation::update_organisation::UpdateOrganisationError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::update_organisation::UpdateOrganisationError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_organisation::UpdateOrganisationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_override::UpdateOverrideError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_override::UpdateOverrideError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::update_override::UpdateOverrideError> for Error {
fn from(err: crate::operation::update_override::UpdateOverrideError) -> Self {
match err {
crate::operation::update_override::UpdateOverrideError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::update_override::UpdateOverrideError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::update_override::UpdateOverrideError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_override::UpdateOverrideError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_overrides_experiment::UpdateOverridesExperimentError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_overrides_experiment::UpdateOverridesExperimentError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::update_overrides_experiment::UpdateOverridesExperimentError> for Error {
fn from(err: crate::operation::update_overrides_experiment::UpdateOverridesExperimentError) -> Self {
match err {
crate::operation::update_overrides_experiment::UpdateOverridesExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::update_overrides_experiment::UpdateOverridesExperimentError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::update_overrides_experiment::UpdateOverridesExperimentError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_overrides_experiment::UpdateOverridesExperimentError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_secret::UpdateSecretError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_secret::UpdateSecretError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::update_secret::UpdateSecretError> for Error {
fn from(err: crate::operation::update_secret::UpdateSecretError) -> Self {
match err {
crate::operation::update_secret::UpdateSecretError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::update_secret::UpdateSecretError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_secret::UpdateSecretError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_type_templates::UpdateTypeTemplatesError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_type_templates::UpdateTypeTemplatesError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::update_type_templates::UpdateTypeTemplatesError> for Error {
fn from(err: crate::operation::update_type_templates::UpdateTypeTemplatesError) -> Self {
match err {
crate::operation::update_type_templates::UpdateTypeTemplatesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::update_type_templates::UpdateTypeTemplatesError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_type_templates::UpdateTypeTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_variable::UpdateVariableError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_variable::UpdateVariableError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::update_variable::UpdateVariableError> for Error {
fn from(err: crate::operation::update_variable::UpdateVariableError) -> Self {
match err {
crate::operation::update_variable::UpdateVariableError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::update_variable::UpdateVariableError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_variable::UpdateVariableError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_webhook::UpdateWebhookError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_webhook::UpdateWebhookError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::update_webhook::UpdateWebhookError> for Error {
fn from(err: crate::operation::update_webhook::UpdateWebhookError) -> Self {
match err {
crate::operation::update_webhook::UpdateWebhookError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::update_webhook::UpdateWebhookError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_webhook::UpdateWebhookError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workspace::UpdateWorkspaceError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workspace::UpdateWorkspaceError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::update_workspace::UpdateWorkspaceError> for Error {
fn from(err: crate::operation::update_workspace::UpdateWorkspaceError) -> Self {
match err {
crate::operation::update_workspace::UpdateWorkspaceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
crate::operation::update_workspace::UpdateWorkspaceError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::update_workspace::UpdateWorkspaceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::validate_context::ValidateContextError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::validate_context::ValidateContextError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::validate_context::ValidateContextError> for Error {
fn from(err: crate::operation::validate_context::ValidateContextError) -> Self {
match err {
crate::operation::validate_context::ValidateContextError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::validate_context::ValidateContextError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::weight_recompute::WeightRecomputeError, R>> for Error where R: Send + Sync + std::fmt::Debug + 'static {
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::weight_recompute::WeightRecomputeError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}
),
}
}
}
impl From<crate::operation::weight_recompute::WeightRecomputeError> for Error {
fn from(err: crate::operation::weight_recompute::WeightRecomputeError) -> Self {
match err {
crate::operation::weight_recompute::WeightRecomputeError::WebhookFailed(inner) => Error::WebhookFailed(inner),
crate::operation::weight_recompute::WeightRecomputeError::InternalServerError(inner) => Error::InternalServerError(inner),
crate::operation::weight_recompute::WeightRecomputeError::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::InternalServerError(inner) => inner.source(),
Error::ResourceNotFound(inner) => inner.source(),
Error::WebhookFailed(inner) => inner.source(),
Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source)
}
}
}