#[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::create_act::CreateActError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_act::CreateActError, 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_act::CreateActError> for Error {
fn from(err: crate::operation::create_act::CreateActError) -> Self {
match err {
crate::operation::create_act::CreateActError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_act::CreateActError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_act::CreateActError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_act::CreateActError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_act::CreateActError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_act::CreateActError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_act::CreateActError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_act::CreateActError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_session::CreateSessionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_session::CreateSessionError, 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_session::CreateSessionError> for Error {
fn from(err: crate::operation::create_session::CreateSessionError) -> Self {
match err {
crate::operation::create_session::CreateSessionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_session::CreateSessionError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_session::CreateSessionError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_session::CreateSessionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_session::CreateSessionError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_session::CreateSessionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_session::CreateSessionError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_session::CreateSessionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workflow_definition::CreateWorkflowDefinitionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workflow_definition::CreateWorkflowDefinitionError, 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_workflow_definition::CreateWorkflowDefinitionError> for Error {
fn from(err: crate::operation::create_workflow_definition::CreateWorkflowDefinitionError) -> Self {
match err {
crate::operation::create_workflow_definition::CreateWorkflowDefinitionError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_workflow_definition::CreateWorkflowDefinitionError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_workflow_definition::CreateWorkflowDefinitionError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_workflow_definition::CreateWorkflowDefinitionError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_workflow_definition::CreateWorkflowDefinitionError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_workflow_definition::CreateWorkflowDefinitionError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_workflow_definition::CreateWorkflowDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workflow_run::CreateWorkflowRunError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workflow_run::CreateWorkflowRunError, 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_workflow_run::CreateWorkflowRunError> for Error {
fn from(err: crate::operation::create_workflow_run::CreateWorkflowRunError) -> Self {
match err {
crate::operation::create_workflow_run::CreateWorkflowRunError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_workflow_run::CreateWorkflowRunError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_workflow_run::CreateWorkflowRunError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_workflow_run::CreateWorkflowRunError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_workflow_run::CreateWorkflowRunError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_workflow_run::CreateWorkflowRunError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_workflow_run::CreateWorkflowRunError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workflow_definition::DeleteWorkflowDefinitionError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workflow_definition::DeleteWorkflowDefinitionError, 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_workflow_definition::DeleteWorkflowDefinitionError> for Error {
fn from(err: crate::operation::delete_workflow_definition::DeleteWorkflowDefinitionError) -> Self {
match err {
crate::operation::delete_workflow_definition::DeleteWorkflowDefinitionError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_workflow_definition::DeleteWorkflowDefinitionError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_workflow_definition::DeleteWorkflowDefinitionError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_workflow_definition::DeleteWorkflowDefinitionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_workflow_definition::DeleteWorkflowDefinitionError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_workflow_definition::DeleteWorkflowDefinitionError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_workflow_definition::DeleteWorkflowDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workflow_run::DeleteWorkflowRunError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workflow_run::DeleteWorkflowRunError, 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_workflow_run::DeleteWorkflowRunError> for Error {
fn from(err: crate::operation::delete_workflow_run::DeleteWorkflowRunError) -> Self {
match err {
crate::operation::delete_workflow_run::DeleteWorkflowRunError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_workflow_run::DeleteWorkflowRunError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_workflow_run::DeleteWorkflowRunError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_workflow_run::DeleteWorkflowRunError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_workflow_run::DeleteWorkflowRunError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_workflow_run::DeleteWorkflowRunError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_workflow_run::DeleteWorkflowRunError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workflow_definition::GetWorkflowDefinitionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workflow_definition::GetWorkflowDefinitionError, 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_workflow_definition::GetWorkflowDefinitionError> for Error {
fn from(err: crate::operation::get_workflow_definition::GetWorkflowDefinitionError) -> Self {
match err {
crate::operation::get_workflow_definition::GetWorkflowDefinitionError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::get_workflow_definition::GetWorkflowDefinitionError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::get_workflow_definition::GetWorkflowDefinitionError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_workflow_definition::GetWorkflowDefinitionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_workflow_definition::GetWorkflowDefinitionError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_workflow_definition::GetWorkflowDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workflow_run::GetWorkflowRunError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workflow_run::GetWorkflowRunError, 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_workflow_run::GetWorkflowRunError> for Error {
fn from(err: crate::operation::get_workflow_run::GetWorkflowRunError) -> Self {
match err {
crate::operation::get_workflow_run::GetWorkflowRunError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_workflow_run::GetWorkflowRunError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::get_workflow_run::GetWorkflowRunError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_workflow_run::GetWorkflowRunError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_workflow_run::GetWorkflowRunError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_workflow_run::GetWorkflowRunError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_workflow_run::GetWorkflowRunError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invoke_act_step::InvokeActStepError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invoke_act_step::InvokeActStepError, 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::invoke_act_step::InvokeActStepError> for Error {
fn from(err: crate::operation::invoke_act_step::InvokeActStepError) -> Self {
match err {
crate::operation::invoke_act_step::InvokeActStepError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::invoke_act_step::InvokeActStepError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::invoke_act_step::InvokeActStepError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::invoke_act_step::InvokeActStepError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::invoke_act_step::InvokeActStepError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::invoke_act_step::InvokeActStepError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::invoke_act_step::InvokeActStepError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::invoke_act_step::InvokeActStepError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_acts::ListActsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_acts::ListActsError, 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_acts::ListActsError> for Error {
fn from(err: crate::operation::list_acts::ListActsError) -> Self {
match err {
crate::operation::list_acts::ListActsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_acts::ListActsError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::list_acts::ListActsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_acts::ListActsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_acts::ListActsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_acts::ListActsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_acts::ListActsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_models::ListModelsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_models::ListModelsError, 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_models::ListModelsError> for Error {
fn from(err: crate::operation::list_models::ListModelsError) -> Self {
match err {
crate::operation::list_models::ListModelsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_models::ListModelsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_models::ListModelsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_models::ListModelsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sessions::ListSessionsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sessions::ListSessionsError, 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_sessions::ListSessionsError> for Error {
fn from(err: crate::operation::list_sessions::ListSessionsError) -> Self {
match err {
crate::operation::list_sessions::ListSessionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_sessions::ListSessionsError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::list_sessions::ListSessionsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_sessions::ListSessionsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_sessions::ListSessionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_sessions::ListSessionsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_sessions::ListSessionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workflow_definitions::ListWorkflowDefinitionsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workflow_definitions::ListWorkflowDefinitionsError, 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_workflow_definitions::ListWorkflowDefinitionsError> for Error {
fn from(err: crate::operation::list_workflow_definitions::ListWorkflowDefinitionsError) -> Self {
match err {
crate::operation::list_workflow_definitions::ListWorkflowDefinitionsError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::list_workflow_definitions::ListWorkflowDefinitionsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_workflow_definitions::ListWorkflowDefinitionsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_workflow_definitions::ListWorkflowDefinitionsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_workflow_definitions::ListWorkflowDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workflow_runs::ListWorkflowRunsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workflow_runs::ListWorkflowRunsError, 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_workflow_runs::ListWorkflowRunsError> for Error {
fn from(err: crate::operation::list_workflow_runs::ListWorkflowRunsError) -> Self {
match err {
crate::operation::list_workflow_runs::ListWorkflowRunsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_workflow_runs::ListWorkflowRunsError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::list_workflow_runs::ListWorkflowRunsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_workflow_runs::ListWorkflowRunsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_workflow_runs::ListWorkflowRunsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_workflow_runs::ListWorkflowRunsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_workflow_runs::ListWorkflowRunsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_act::UpdateActError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_act::UpdateActError, 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_act::UpdateActError> for Error {
fn from(err: crate::operation::update_act::UpdateActError) -> Self {
match err {
crate::operation::update_act::UpdateActError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_act::UpdateActError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_act::UpdateActError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_act::UpdateActError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_act::UpdateActError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_act::UpdateActError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_act::UpdateActError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workflow_run::UpdateWorkflowRunError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workflow_run::UpdateWorkflowRunError, 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_workflow_run::UpdateWorkflowRunError> for Error {
fn from(err: crate::operation::update_workflow_run::UpdateWorkflowRunError) -> Self {
match err {
crate::operation::update_workflow_run::UpdateWorkflowRunError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_workflow_run::UpdateWorkflowRunError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_workflow_run::UpdateWorkflowRunError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_workflow_run::UpdateWorkflowRunError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_workflow_run::UpdateWorkflowRunError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_workflow_run::UpdateWorkflowRunError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_workflow_run::UpdateWorkflowRunError::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(),
}
}
}