#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
AccessDeniedException(crate::types::error::AccessDeniedException),
ConflictException(crate::types::error::ConflictException),
InternalServerException(crate::types::error::InternalServerException),
ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
ThrottlingException(crate::types::error::ThrottlingException),
ValidationException(crate::types::error::ValidationException),
#[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::AccessDeniedException(inner) => inner.fmt(f),
Error::ConflictException(inner) => inner.fmt(f),
Error::InternalServerException(inner) => inner.fmt(f),
Error::ResourceNotFoundException(inner) => inner.fmt(f),
Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
Error::ThrottlingException(inner) => inner.fmt(f),
Error::ValidationException(inner) => inner.fmt(f),
Error::Unhandled(_) => {
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::AccessDeniedException(inner) => inner.meta(),
Self::ConflictException(inner) => inner.meta(),
Self::InternalServerException(inner) => inner.meta(),
Self::ResourceNotFoundException(inner) => inner.meta(),
Self::ServiceQuotaExceededException(inner) => inner.meta(),
Self::ThrottlingException(inner) => inner.meta(),
Self::ValidationException(inner) => inner.meta(),
Self::Unhandled(inner) => &inner.meta,
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_curation_proposal::AcceptCurationProposalError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_curation_proposal::AcceptCurationProposalError, 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::accept_curation_proposal::AcceptCurationProposalError> for Error {
fn from(err: crate::operation::accept_curation_proposal::AcceptCurationProposalError) -> Self {
match err {
crate::operation::accept_curation_proposal::AcceptCurationProposalError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::accept_curation_proposal::AcceptCurationProposalError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::accept_curation_proposal::AcceptCurationProposalError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::accept_curation_proposal::AcceptCurationProposalError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::accept_curation_proposal::AcceptCurationProposalError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::accept_curation_proposal::AcceptCurationProposalError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::accept_curation_proposal::AcceptCurationProposalError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::agentic_retrieve::AgenticRetrieveError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::agentic_retrieve::AgenticRetrieveError, 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::agentic_retrieve::AgenticRetrieveError> for Error {
fn from(err: crate::operation::agentic_retrieve::AgenticRetrieveError) -> Self {
match err {
crate::operation::agentic_retrieve::AgenticRetrieveError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::agentic_retrieve::AgenticRetrieveError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::agentic_retrieve::AgenticRetrieveError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::agentic_retrieve::AgenticRetrieveError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::agentic_retrieve::AgenticRetrieveError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::agentic_retrieve::AgenticRetrieveError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::agentic_retrieve::AgenticRetrieveError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError, 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::agentic_retrieve_stream::AgenticRetrieveStreamError> for Error {
fn from(err: crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError) -> Self {
match err {
crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::agentic_retrieve_stream::AgenticRetrieveStreamError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_curation_policy::AssociateCurationPolicyError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_curation_policy::AssociateCurationPolicyError, 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::associate_curation_policy::AssociateCurationPolicyError> for Error {
fn from(err: crate::operation::associate_curation_policy::AssociateCurationPolicyError) -> Self {
match err {
crate::operation::associate_curation_policy::AssociateCurationPolicyError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::associate_curation_policy::AssociateCurationPolicyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::associate_curation_policy::AssociateCurationPolicyError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::associate_curation_policy::AssociateCurationPolicyError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::associate_curation_policy::AssociateCurationPolicyError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::associate_curation_policy::AssociateCurationPolicyError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::associate_curation_policy::AssociateCurationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_ontology_induction::CancelOntologyInductionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_ontology_induction::CancelOntologyInductionError, 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::cancel_ontology_induction::CancelOntologyInductionError> for Error {
fn from(err: crate::operation::cancel_ontology_induction::CancelOntologyInductionError) -> Self {
match err {
crate::operation::cancel_ontology_induction::CancelOntologyInductionError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::cancel_ontology_induction::CancelOntologyInductionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::cancel_ontology_induction::CancelOntologyInductionError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::cancel_ontology_induction::CancelOntologyInductionError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::cancel_ontology_induction::CancelOntologyInductionError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::cancel_ontology_induction::CancelOntologyInductionError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::cancel_ontology_induction::CancelOntologyInductionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_task::CancelTaskError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_task::CancelTaskError, 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::cancel_task::CancelTaskError> for Error {
fn from(err: crate::operation::cancel_task::CancelTaskError) -> Self {
match err {
crate::operation::cancel_task::CancelTaskError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::cancel_task::CancelTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::cancel_task::CancelTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::cancel_task::CancelTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::cancel_task::CancelTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::cancel_task::CancelTaskError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::cancel_task::CancelTaskError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent_context::CreateAgentContextError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent_context::CreateAgentContextError, 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_agent_context::CreateAgentContextError> for Error {
fn from(err: crate::operation::create_agent_context::CreateAgentContextError) -> Self {
match err {
crate::operation::create_agent_context::CreateAgentContextError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_agent_context::CreateAgentContextError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_agent_context::CreateAgentContextError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_agent_context::CreateAgentContextError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_agent_context::CreateAgentContextError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_agent_context::CreateAgentContextError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_agent_context::CreateAgentContextError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_agent_context::CreateAgentContextError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_change_set::CreateChangeSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_change_set::CreateChangeSetError, 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_change_set::CreateChangeSetError> for Error {
fn from(err: crate::operation::create_change_set::CreateChangeSetError) -> Self {
match err {
crate::operation::create_change_set::CreateChangeSetError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_change_set::CreateChangeSetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_change_set::CreateChangeSetError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_change_set::CreateChangeSetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_change_set::CreateChangeSetError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_change_set::CreateChangeSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_change_set::CreateChangeSetError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_change_set::CreateChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, 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_connection::CreateConnectionError> for Error {
fn from(err: crate::operation::create_connection::CreateConnectionError) -> Self {
match err {
crate::operation::create_connection::CreateConnectionError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_connection::CreateConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_connection::CreateConnectionError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_connection::CreateConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_connection::CreateConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_connection::CreateConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_connection::CreateConnectionError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_connection::CreateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_curation_policy::CreateCurationPolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_curation_policy::CreateCurationPolicyError, 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_curation_policy::CreateCurationPolicyError> for Error {
fn from(err: crate::operation::create_curation_policy::CreateCurationPolicyError) -> Self {
match err {
crate::operation::create_curation_policy::CreateCurationPolicyError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_curation_policy::CreateCurationPolicyError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_curation_policy::CreateCurationPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_curation_policy::CreateCurationPolicyError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_curation_policy::CreateCurationPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_curation_policy::CreateCurationPolicyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_curation_policy::CreateCurationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError,
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_curation_policy_version::CreateCurationPolicyVersionError> for Error {
fn from(err: crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError) -> Self {
match err {
crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_curation_policy_version::CreateCurationPolicyVersionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ontology::CreateOntologyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ontology::CreateOntologyError, 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_ontology::CreateOntologyError> for Error {
fn from(err: crate::operation::create_ontology::CreateOntologyError) -> Self {
match err {
crate::operation::create_ontology::CreateOntologyError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_ontology::CreateOntologyError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_ontology::CreateOntologyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_ontology::CreateOntologyError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_ontology::CreateOntologyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_ontology::CreateOntologyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_ontology::CreateOntologyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent_context::DeleteAgentContextError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent_context::DeleteAgentContextError, 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_agent_context::DeleteAgentContextError> for Error {
fn from(err: crate::operation::delete_agent_context::DeleteAgentContextError) -> Self {
match err {
crate::operation::delete_agent_context::DeleteAgentContextError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_agent_context::DeleteAgentContextError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_agent_context::DeleteAgentContextError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_agent_context::DeleteAgentContextError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_agent_context::DeleteAgentContextError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_agent_context::DeleteAgentContextError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_agent_context::DeleteAgentContextError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, 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_connection::DeleteConnectionError> for Error {
fn from(err: crate::operation::delete_connection::DeleteConnectionError) -> Self {
match err {
crate::operation::delete_connection::DeleteConnectionError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_connection::DeleteConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_connection::DeleteConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_connection::DeleteConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_connection::DeleteConnectionError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_connection::DeleteConnectionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_curation_policy::DeleteCurationPolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_curation_policy::DeleteCurationPolicyError, 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_curation_policy::DeleteCurationPolicyError> for Error {
fn from(err: crate::operation::delete_curation_policy::DeleteCurationPolicyError) -> Self {
match err {
crate::operation::delete_curation_policy::DeleteCurationPolicyError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_curation_policy::DeleteCurationPolicyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_curation_policy::DeleteCurationPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_curation_policy::DeleteCurationPolicyError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_curation_policy::DeleteCurationPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_curation_policy::DeleteCurationPolicyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_curation_policy::DeleteCurationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ontology::DeleteOntologyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ontology::DeleteOntologyError, 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_ontology::DeleteOntologyError> for Error {
fn from(err: crate::operation::delete_ontology::DeleteOntologyError) -> Self {
match err {
crate::operation::delete_ontology::DeleteOntologyError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_ontology::DeleteOntologyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_ontology::DeleteOntologyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_ontology::DeleteOntologyError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_ontology::DeleteOntologyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_ontology::DeleteOntologyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_ontology::DeleteOntologyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ontology_induction::DeleteOntologyInductionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ontology_induction::DeleteOntologyInductionError, 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_ontology_induction::DeleteOntologyInductionError> for Error {
fn from(err: crate::operation::delete_ontology_induction::DeleteOntologyInductionError) -> Self {
match err {
crate::operation::delete_ontology_induction::DeleteOntologyInductionError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_ontology_induction::DeleteOntologyInductionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_ontology_induction::DeleteOntologyInductionError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_ontology_induction::DeleteOntologyInductionError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_ontology_induction::DeleteOntologyInductionError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_ontology_induction::DeleteOntologyInductionError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_ontology_induction::DeleteOntologyInductionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, 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_resource_policy::DeleteResourcePolicyError> for Error {
fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
match err {
crate::operation::delete_resource_policy::DeleteResourcePolicyError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_resource_policy::DeleteResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_resource_policy::DeleteResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError, 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::disassociate_curation_policy::DisassociateCurationPolicyError> for Error {
fn from(err: crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError) -> Self {
match err {
crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::disassociate_curation_policy::DisassociateCurationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_sql::ExecuteSqlError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_sql::ExecuteSqlError, 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::execute_sql::ExecuteSqlError> for Error {
fn from(err: crate::operation::execute_sql::ExecuteSqlError) -> Self {
match err {
crate::operation::execute_sql::ExecuteSqlError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::execute_sql::ExecuteSqlError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::execute_sql::ExecuteSqlError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::execute_sql::ExecuteSqlError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::execute_sql::ExecuteSqlError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::execute_sql::ExecuteSqlError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::execute_sql::ExecuteSqlError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_agent_context::GetAgentContextError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_agent_context::GetAgentContextError, 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_agent_context::GetAgentContextError> for Error {
fn from(err: crate::operation::get_agent_context::GetAgentContextError) -> Self {
match err {
crate::operation::get_agent_context::GetAgentContextError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_agent_context::GetAgentContextError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_agent_context::GetAgentContextError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_agent_context::GetAgentContextError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_agent_context::GetAgentContextError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_agent_context::GetAgentContextError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_change_set::GetChangeSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_change_set::GetChangeSetError, 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_change_set::GetChangeSetError> for Error {
fn from(err: crate::operation::get_change_set::GetChangeSetError) -> Self {
match err {
crate::operation::get_change_set::GetChangeSetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_change_set::GetChangeSetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_change_set::GetChangeSetError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_change_set::GetChangeSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_change_set::GetChangeSetError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_change_set::GetChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connection::GetConnectionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connection::GetConnectionError, 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_connection::GetConnectionError> for Error {
fn from(err: crate::operation::get_connection::GetConnectionError) -> Self {
match err {
crate::operation::get_connection::GetConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_connection::GetConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_connection::GetConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_connection::GetConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_connection::GetConnectionError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_connection::GetConnectionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_curation_policy::GetCurationPolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_curation_policy::GetCurationPolicyError, 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_curation_policy::GetCurationPolicyError> for Error {
fn from(err: crate::operation::get_curation_policy::GetCurationPolicyError) -> Self {
match err {
crate::operation::get_curation_policy::GetCurationPolicyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_curation_policy::GetCurationPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_curation_policy::GetCurationPolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_curation_policy::GetCurationPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_curation_policy::GetCurationPolicyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_curation_policy::GetCurationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_curation_proposal::GetCurationProposalError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_curation_proposal::GetCurationProposalError, 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_curation_proposal::GetCurationProposalError> for Error {
fn from(err: crate::operation::get_curation_proposal::GetCurationProposalError) -> Self {
match err {
crate::operation::get_curation_proposal::GetCurationProposalError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_curation_proposal::GetCurationProposalError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_curation_proposal::GetCurationProposalError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::get_curation_proposal::GetCurationProposalError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_curation_proposal::GetCurationProposalError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_curation_proposal::GetCurationProposalError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ontology::GetOntologyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ontology::GetOntologyError, 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_ontology::GetOntologyError> for Error {
fn from(err: crate::operation::get_ontology::GetOntologyError) -> Self {
match err {
crate::operation::get_ontology::GetOntologyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_ontology::GetOntologyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_ontology::GetOntologyError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_ontology::GetOntologyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_ontology::GetOntologyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_ontology::GetOntologyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ontology_induction::GetOntologyInductionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ontology_induction::GetOntologyInductionError, 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_ontology_induction::GetOntologyInductionError> for Error {
fn from(err: crate::operation::get_ontology_induction::GetOntologyInductionError) -> Self {
match err {
crate::operation::get_ontology_induction::GetOntologyInductionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_ontology_induction::GetOntologyInductionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_ontology_induction::GetOntologyInductionError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::get_ontology_induction::GetOntologyInductionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_ontology_induction::GetOntologyInductionError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_ontology_induction::GetOntologyInductionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, 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_resource_policy::GetResourcePolicyError> for Error {
fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
match err {
crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_resource_policy::GetResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_resource_policy::GetResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_resource_policy::GetResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_resource_policy::GetResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_task::GetTaskError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_task::GetTaskError, 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_task::GetTaskError> for Error {
fn from(err: crate::operation::get_task::GetTaskError) -> Self {
match err {
crate::operation::get_task::GetTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_task::GetTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_task::GetTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_task::GetTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_task::GetTaskError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_task::GetTaskError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agent_contexts::ListAgentContextsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agent_contexts::ListAgentContextsError, 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_agent_contexts::ListAgentContextsError> for Error {
fn from(err: crate::operation::list_agent_contexts::ListAgentContextsError) -> Self {
match err {
crate::operation::list_agent_contexts::ListAgentContextsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_agent_contexts::ListAgentContextsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_agent_contexts::ListAgentContextsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_agent_contexts::ListAgentContextsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_agent_contexts::ListAgentContextsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_change_set_operations::ListChangeSetOperationsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_change_set_operations::ListChangeSetOperationsError, 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_change_set_operations::ListChangeSetOperationsError> for Error {
fn from(err: crate::operation::list_change_set_operations::ListChangeSetOperationsError) -> Self {
match err {
crate::operation::list_change_set_operations::ListChangeSetOperationsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_change_set_operations::ListChangeSetOperationsError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::list_change_set_operations::ListChangeSetOperationsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_change_set_operations::ListChangeSetOperationsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_change_set_operations::ListChangeSetOperationsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_change_set_operations::ListChangeSetOperationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_change_sets::ListChangeSetsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_change_sets::ListChangeSetsError, 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_change_sets::ListChangeSetsError> for Error {
fn from(err: crate::operation::list_change_sets::ListChangeSetsError) -> Self {
match err {
crate::operation::list_change_sets::ListChangeSetsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_change_sets::ListChangeSetsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_change_sets::ListChangeSetsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_change_sets::ListChangeSetsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_change_sets::ListChangeSetsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_change_sets::ListChangeSetsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connections::ListConnectionsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connections::ListConnectionsError, 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_connections::ListConnectionsError> for Error {
fn from(err: crate::operation::list_connections::ListConnectionsError) -> Self {
match err {
crate::operation::list_connections::ListConnectionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_connections::ListConnectionsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_connections::ListConnectionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_connections::ListConnectionsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_connections::ListConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_curation_policies::ListCurationPoliciesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_curation_policies::ListCurationPoliciesError, 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_curation_policies::ListCurationPoliciesError> for Error {
fn from(err: crate::operation::list_curation_policies::ListCurationPoliciesError) -> Self {
match err {
crate::operation::list_curation_policies::ListCurationPoliciesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_curation_policies::ListCurationPoliciesError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_curation_policies::ListCurationPoliciesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_curation_policies::ListCurationPoliciesError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_curation_policies::ListCurationPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_curation_proposals::ListCurationProposalsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_curation_proposals::ListCurationProposalsError, 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_curation_proposals::ListCurationProposalsError> for Error {
fn from(err: crate::operation::list_curation_proposals::ListCurationProposalsError) -> Self {
match err {
crate::operation::list_curation_proposals::ListCurationProposalsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_curation_proposals::ListCurationProposalsError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::list_curation_proposals::ListCurationProposalsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_curation_proposals::ListCurationProposalsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_curation_proposals::ListCurationProposalsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_curation_proposals::ListCurationProposalsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ontologies::ListOntologiesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ontologies::ListOntologiesError, 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_ontologies::ListOntologiesError> for Error {
fn from(err: crate::operation::list_ontologies::ListOntologiesError) -> Self {
match err {
crate::operation::list_ontologies::ListOntologiesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_ontologies::ListOntologiesError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_ontologies::ListOntologiesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_ontologies::ListOntologiesError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_ontologies::ListOntologiesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ontology_inductions::ListOntologyInductionsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ontology_inductions::ListOntologyInductionsError, 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_ontology_inductions::ListOntologyInductionsError> for Error {
fn from(err: crate::operation::list_ontology_inductions::ListOntologyInductionsError) -> Self {
match err {
crate::operation::list_ontology_inductions::ListOntologyInductionsError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::list_ontology_inductions::ListOntologyInductionsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_ontology_inductions::ListOntologyInductionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_ontology_inductions::ListOntologyInductionsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_ontology_inductions::ListOntologyInductionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, 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_tags_for_resource::ListTagsForResourceError> for Error {
fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
match err {
crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tasks::ListTasksError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tasks::ListTasksError, 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_tasks::ListTasksError> for Error {
fn from(err: crate::operation::list_tasks::ListTasksError) -> Self {
match err {
crate::operation::list_tasks::ListTasksError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_tasks::ListTasksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_tasks::ListTasksError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_tasks::ListTasksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_tasks::ListTasksError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_tasks::ListTasksError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, 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::put_resource_policy::PutResourcePolicyError> for Error {
fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
match err {
crate::operation::put_resource_policy::PutResourcePolicyError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::put_resource_policy::PutResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::put_resource_policy::PutResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_trace::PutTraceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_trace::PutTraceError, 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::put_trace::PutTraceError> for Error {
fn from(err: crate::operation::put_trace::PutTraceError) -> Self {
match err {
crate::operation::put_trace::PutTraceError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::put_trace::PutTraceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::put_trace::PutTraceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::put_trace::PutTraceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::put_trace::PutTraceError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::put_trace::PutTraceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::put_trace::PutTraceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::put_trace::PutTraceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_curation_proposal::RejectCurationProposalError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_curation_proposal::RejectCurationProposalError, 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::reject_curation_proposal::RejectCurationProposalError> for Error {
fn from(err: crate::operation::reject_curation_proposal::RejectCurationProposalError) -> Self {
match err {
crate::operation::reject_curation_proposal::RejectCurationProposalError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::reject_curation_proposal::RejectCurationProposalError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::reject_curation_proposal::RejectCurationProposalError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::reject_curation_proposal::RejectCurationProposalError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::reject_curation_proposal::RejectCurationProposalError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::reject_curation_proposal::RejectCurationProposalError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::reject_curation_proposal::RejectCurationProposalError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_agent_context::SearchAgentContextError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_agent_context::SearchAgentContextError, 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::search_agent_context::SearchAgentContextError> for Error {
fn from(err: crate::operation::search_agent_context::SearchAgentContextError) -> Self {
match err {
crate::operation::search_agent_context::SearchAgentContextError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::search_agent_context::SearchAgentContextError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::search_agent_context::SearchAgentContextError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::search_agent_context::SearchAgentContextError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::search_agent_context::SearchAgentContextError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::search_agent_context::SearchAgentContextError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::search_agent_context::SearchAgentContextError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_ontology_induction::StartOntologyInductionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_ontology_induction::StartOntologyInductionError, 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::start_ontology_induction::StartOntologyInductionError> for Error {
fn from(err: crate::operation::start_ontology_induction::StartOntologyInductionError) -> Self {
match err {
crate::operation::start_ontology_induction::StartOntologyInductionError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::start_ontology_induction::StartOntologyInductionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::start_ontology_induction::StartOntologyInductionError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::start_ontology_induction::StartOntologyInductionError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::start_ontology_induction::StartOntologyInductionError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::start_ontology_induction::StartOntologyInductionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::start_ontology_induction::StartOntologyInductionError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::start_ontology_induction::StartOntologyInductionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_task::StartTaskError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_task::StartTaskError, 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::start_task::StartTaskError> for Error {
fn from(err: crate::operation::start_task::StartTaskError) -> Self {
match err {
crate::operation::start_task::StartTaskError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::start_task::StartTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::start_task::StartTaskError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::start_task::StartTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::start_task::StartTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::start_task::StartTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::start_task::StartTaskError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::start_task::StartTaskError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, 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::tag_resource::TagResourceError> for Error {
fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
match err {
crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::traverse_agent_context::TraverseAgentContextError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::traverse_agent_context::TraverseAgentContextError, 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::traverse_agent_context::TraverseAgentContextError> for Error {
fn from(err: crate::operation::traverse_agent_context::TraverseAgentContextError) -> Self {
match err {
crate::operation::traverse_agent_context::TraverseAgentContextError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::traverse_agent_context::TraverseAgentContextError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::traverse_agent_context::TraverseAgentContextError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::traverse_agent_context::TraverseAgentContextError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::traverse_agent_context::TraverseAgentContextError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::traverse_agent_context::TraverseAgentContextError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::traverse_agent_context::TraverseAgentContextError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, 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::untag_resource::UntagResourceError> for Error {
fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
match err {
crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent_context::UpdateAgentContextError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent_context::UpdateAgentContextError, 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_agent_context::UpdateAgentContextError> for Error {
fn from(err: crate::operation::update_agent_context::UpdateAgentContextError) -> Self {
match err {
crate::operation::update_agent_context::UpdateAgentContextError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_agent_context::UpdateAgentContextError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_agent_context::UpdateAgentContextError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_agent_context::UpdateAgentContextError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_agent_context::UpdateAgentContextError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_agent_context::UpdateAgentContextError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_agent_context::UpdateAgentContextError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_change_set::UpdateChangeSetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_change_set::UpdateChangeSetError, 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_change_set::UpdateChangeSetError> for Error {
fn from(err: crate::operation::update_change_set::UpdateChangeSetError) -> Self {
match err {
crate::operation::update_change_set::UpdateChangeSetError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_change_set::UpdateChangeSetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_change_set::UpdateChangeSetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_change_set::UpdateChangeSetError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_change_set::UpdateChangeSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_change_set::UpdateChangeSetError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_change_set::UpdateChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connection::UpdateConnectionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connection::UpdateConnectionError, 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_connection::UpdateConnectionError> for Error {
fn from(err: crate::operation::update_connection::UpdateConnectionError) -> Self {
match err {
crate::operation::update_connection::UpdateConnectionError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_connection::UpdateConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_connection::UpdateConnectionError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::update_connection::UpdateConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_connection::UpdateConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_connection::UpdateConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_connection::UpdateConnectionError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_connection::UpdateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_curation_policy::UpdateCurationPolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_curation_policy::UpdateCurationPolicyError, 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_curation_policy::UpdateCurationPolicyError> for Error {
fn from(err: crate::operation::update_curation_policy::UpdateCurationPolicyError) -> Self {
match err {
crate::operation::update_curation_policy::UpdateCurationPolicyError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_curation_policy::UpdateCurationPolicyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_curation_policy::UpdateCurationPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_curation_policy::UpdateCurationPolicyError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::update_curation_policy::UpdateCurationPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_curation_policy::UpdateCurationPolicyError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_curation_policy::UpdateCurationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::AgenticRetrieveStreamOutputError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::AgenticRetrieveStreamOutputError, 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::types::error::AgenticRetrieveStreamOutputError> for Error {
fn from(err: crate::types::error::AgenticRetrieveStreamOutputError) -> Self {
match err {
crate::types::error::AgenticRetrieveStreamOutputError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::types::error::AgenticRetrieveStreamOutputError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::types::error::AgenticRetrieveStreamOutputError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::types::error::AgenticRetrieveStreamOutputError::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::AccessDeniedException(inner) => inner.source(),
Error::ConflictException(inner) => inner.source(),
Error::InternalServerException(inner) => inner.source(),
Error::ResourceNotFoundException(inner) => inner.source(),
Error::ServiceQuotaExceededException(inner) => inner.source(),
Error::ThrottlingException(inner) => inner.source(),
Error::ValidationException(inner) => inner.source(),
Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
}
}
}
impl ::aws_types::request_id::RequestId for Error {
fn request_id(&self) -> Option<&str> {
match self {
Self::AccessDeniedException(e) => e.request_id(),
Self::ConflictException(e) => e.request_id(),
Self::InternalServerException(e) => e.request_id(),
Self::ResourceNotFoundException(e) => e.request_id(),
Self::ServiceQuotaExceededException(e) => e.request_id(),
Self::ThrottlingException(e) => e.request_id(),
Self::ValidationException(e) => e.request_id(),
Self::Unhandled(e) => e.meta.request_id(),
}
}
}