#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
AccessDeniedException(crate::types::error::AccessDeniedException),
ConflictException(crate::types::error::ConflictException),
InternalServiceError(crate::types::error::InternalServiceError),
InvalidNextTokenException(crate::types::error::InvalidNextTokenException),
InvalidRequestException(crate::types::error::InvalidRequestException),
ResourceExistsException(crate::types::error::ResourceExistsException),
ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
ThrottlingException(crate::types::error::ThrottlingException),
#[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::InternalServiceError(inner) => inner.fmt(f),
Error::InvalidNextTokenException(inner) => inner.fmt(f),
Error::InvalidRequestException(inner) => inner.fmt(f),
Error::ResourceExistsException(inner) => inner.fmt(f),
Error::ResourceNotFoundException(inner) => inner.fmt(f),
Error::ServiceUnavailableException(inner) => inner.fmt(f),
Error::ThrottlingException(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::InternalServiceError(inner) => inner.meta(),
Self::InvalidNextTokenException(inner) => inner.meta(),
Self::InvalidRequestException(inner) => inner.meta(),
Self::ResourceExistsException(inner) => inner.meta(),
Self::ResourceNotFoundException(inner) => inner.meta(),
Self::ServiceUnavailableException(inner) => inner.meta(),
Self::ThrottlingException(inner) => inner.meta(),
Self::Unhandled(inner) => &inner.meta,
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access::CreateAccessError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access::CreateAccessError, 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_access::CreateAccessError> for Error {
fn from(err: crate::operation::create_access::CreateAccessError) -> Self {
match err {
crate::operation::create_access::CreateAccessError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::create_access::CreateAccessError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_access::CreateAccessError::ResourceExistsException(inner) => Error::ResourceExistsException(inner),
crate::operation::create_access::CreateAccessError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_access::CreateAccessError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::create_access::CreateAccessError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agreement::CreateAgreementError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agreement::CreateAgreementError, 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_agreement::CreateAgreementError> for Error {
fn from(err: crate::operation::create_agreement::CreateAgreementError) -> Self {
match err {
crate::operation::create_agreement::CreateAgreementError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::create_agreement::CreateAgreementError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_agreement::CreateAgreementError::ResourceExistsException(inner) => Error::ResourceExistsException(inner),
crate::operation::create_agreement::CreateAgreementError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_agreement::CreateAgreementError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::create_agreement::CreateAgreementError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_agreement::CreateAgreementError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connector::CreateConnectorError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connector::CreateConnectorError, 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_connector::CreateConnectorError> for Error {
fn from(err: crate::operation::create_connector::CreateConnectorError) -> Self {
match err {
crate::operation::create_connector::CreateConnectorError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::create_connector::CreateConnectorError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_connector::CreateConnectorError::ResourceExistsException(inner) => Error::ResourceExistsException(inner),
crate::operation::create_connector::CreateConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_connector::CreateConnectorError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::create_connector::CreateConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_connector::CreateConnectorError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_profile::CreateProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_profile::CreateProfileError, 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_profile::CreateProfileError> for Error {
fn from(err: crate::operation::create_profile::CreateProfileError) -> Self {
match err {
crate::operation::create_profile::CreateProfileError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::create_profile::CreateProfileError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_profile::CreateProfileError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_profile::CreateProfileError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::create_profile::CreateProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_profile::CreateProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_server::CreateServerError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_server::CreateServerError, 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_server::CreateServerError> for Error {
fn from(err: crate::operation::create_server::CreateServerError) -> Self {
match err {
crate::operation::create_server::CreateServerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_server::CreateServerError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::create_server::CreateServerError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_server::CreateServerError::ResourceExistsException(inner) => Error::ResourceExistsException(inner),
crate::operation::create_server::CreateServerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_server::CreateServerError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::create_server::CreateServerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_server::CreateServerError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user::CreateUserError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user::CreateUserError, 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_user::CreateUserError> for Error {
fn from(err: crate::operation::create_user::CreateUserError) -> Self {
match err {
crate::operation::create_user::CreateUserError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::create_user::CreateUserError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_user::CreateUserError::ResourceExistsException(inner) => Error::ResourceExistsException(inner),
crate::operation::create_user::CreateUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_user::CreateUserError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::create_user::CreateUserError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workflow::CreateWorkflowError, 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::CreateWorkflowError, 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::CreateWorkflowError> for Error {
fn from(err: crate::operation::create_workflow::CreateWorkflowError) -> Self {
match err {
crate::operation::create_workflow::CreateWorkflowError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_workflow::CreateWorkflowError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::create_workflow::CreateWorkflowError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::create_workflow::CreateWorkflowError::ResourceExistsException(inner) => Error::ResourceExistsException(inner),
crate::operation::create_workflow::CreateWorkflowError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::create_workflow::CreateWorkflowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_workflow::CreateWorkflowError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access::DeleteAccessError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access::DeleteAccessError, 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_access::DeleteAccessError> for Error {
fn from(err: crate::operation::delete_access::DeleteAccessError) -> Self {
match err {
crate::operation::delete_access::DeleteAccessError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::delete_access::DeleteAccessError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_access::DeleteAccessError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_access::DeleteAccessError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::delete_access::DeleteAccessError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agreement::DeleteAgreementError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agreement::DeleteAgreementError, 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_agreement::DeleteAgreementError> for Error {
fn from(err: crate::operation::delete_agreement::DeleteAgreementError) -> Self {
match err {
crate::operation::delete_agreement::DeleteAgreementError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::delete_agreement::DeleteAgreementError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_agreement::DeleteAgreementError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_agreement::DeleteAgreementError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::delete_agreement::DeleteAgreementError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_certificate::DeleteCertificateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_certificate::DeleteCertificateError, 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_certificate::DeleteCertificateError> for Error {
fn from(err: crate::operation::delete_certificate::DeleteCertificateError) -> Self {
match err {
crate::operation::delete_certificate::DeleteCertificateError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::delete_certificate::DeleteCertificateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_certificate::DeleteCertificateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_certificate::DeleteCertificateError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::delete_certificate::DeleteCertificateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connector::DeleteConnectorError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connector::DeleteConnectorError, 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_connector::DeleteConnectorError> for Error {
fn from(err: crate::operation::delete_connector::DeleteConnectorError) -> Self {
match err {
crate::operation::delete_connector::DeleteConnectorError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::delete_connector::DeleteConnectorError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_connector::DeleteConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_connector::DeleteConnectorError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::delete_connector::DeleteConnectorError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_host_key::DeleteHostKeyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_host_key::DeleteHostKeyError, 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_host_key::DeleteHostKeyError> for Error {
fn from(err: crate::operation::delete_host_key::DeleteHostKeyError) -> Self {
match err {
crate::operation::delete_host_key::DeleteHostKeyError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::delete_host_key::DeleteHostKeyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_host_key::DeleteHostKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_host_key::DeleteHostKeyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::delete_host_key::DeleteHostKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_host_key::DeleteHostKeyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_profile::DeleteProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_profile::DeleteProfileError, 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_profile::DeleteProfileError> for Error {
fn from(err: crate::operation::delete_profile::DeleteProfileError) -> Self {
match err {
crate::operation::delete_profile::DeleteProfileError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::delete_profile::DeleteProfileError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_profile::DeleteProfileError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_profile::DeleteProfileError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::delete_profile::DeleteProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_server::DeleteServerError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_server::DeleteServerError, 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_server::DeleteServerError> for Error {
fn from(err: crate::operation::delete_server::DeleteServerError) -> Self {
match err {
crate::operation::delete_server::DeleteServerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_server::DeleteServerError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::delete_server::DeleteServerError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_server::DeleteServerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_server::DeleteServerError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::delete_server::DeleteServerError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ssh_public_key::DeleteSshPublicKeyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ssh_public_key::DeleteSshPublicKeyError, 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_ssh_public_key::DeleteSshPublicKeyError> for Error {
fn from(err: crate::operation::delete_ssh_public_key::DeleteSshPublicKeyError) -> Self {
match err {
crate::operation::delete_ssh_public_key::DeleteSshPublicKeyError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::delete_ssh_public_key::DeleteSshPublicKeyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_ssh_public_key::DeleteSshPublicKeyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_ssh_public_key::DeleteSshPublicKeyError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::delete_ssh_public_key::DeleteSshPublicKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_ssh_public_key::DeleteSshPublicKeyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user::DeleteUserError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user::DeleteUserError, 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_user::DeleteUserError> for Error {
fn from(err: crate::operation::delete_user::DeleteUserError) -> Self {
match err {
crate::operation::delete_user::DeleteUserError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::delete_user::DeleteUserError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_user::DeleteUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_user::DeleteUserError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::delete_user::DeleteUserError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workflow::DeleteWorkflowError, 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::DeleteWorkflowError, 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::DeleteWorkflowError> for Error {
fn from(err: crate::operation::delete_workflow::DeleteWorkflowError) -> Self {
match err {
crate::operation::delete_workflow::DeleteWorkflowError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_workflow::DeleteWorkflowError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::delete_workflow::DeleteWorkflowError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::delete_workflow::DeleteWorkflowError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_workflow::DeleteWorkflowError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::delete_workflow::DeleteWorkflowError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_access::DescribeAccessError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_access::DescribeAccessError, 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::describe_access::DescribeAccessError> for Error {
fn from(err: crate::operation::describe_access::DescribeAccessError) -> Self {
match err {
crate::operation::describe_access::DescribeAccessError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::describe_access::DescribeAccessError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_access::DescribeAccessError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_access::DescribeAccessError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::describe_access::DescribeAccessError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_agreement::DescribeAgreementError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_agreement::DescribeAgreementError, 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::describe_agreement::DescribeAgreementError> for Error {
fn from(err: crate::operation::describe_agreement::DescribeAgreementError) -> Self {
match err {
crate::operation::describe_agreement::DescribeAgreementError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::describe_agreement::DescribeAgreementError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_agreement::DescribeAgreementError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_agreement::DescribeAgreementError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::describe_agreement::DescribeAgreementError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_certificate::DescribeCertificateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_certificate::DescribeCertificateError, 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::describe_certificate::DescribeCertificateError> for Error {
fn from(err: crate::operation::describe_certificate::DescribeCertificateError) -> Self {
match err {
crate::operation::describe_certificate::DescribeCertificateError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::describe_certificate::DescribeCertificateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_certificate::DescribeCertificateError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_certificate::DescribeCertificateError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::describe_certificate::DescribeCertificateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_connector::DescribeConnectorError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_connector::DescribeConnectorError, 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::describe_connector::DescribeConnectorError> for Error {
fn from(err: crate::operation::describe_connector::DescribeConnectorError) -> Self {
match err {
crate::operation::describe_connector::DescribeConnectorError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::describe_connector::DescribeConnectorError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_connector::DescribeConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_connector::DescribeConnectorError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::describe_connector::DescribeConnectorError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_execution::DescribeExecutionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_execution::DescribeExecutionError, 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::describe_execution::DescribeExecutionError> for Error {
fn from(err: crate::operation::describe_execution::DescribeExecutionError) -> Self {
match err {
crate::operation::describe_execution::DescribeExecutionError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::describe_execution::DescribeExecutionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_execution::DescribeExecutionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_execution::DescribeExecutionError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::describe_execution::DescribeExecutionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_host_key::DescribeHostKeyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_host_key::DescribeHostKeyError, 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::describe_host_key::DescribeHostKeyError> for Error {
fn from(err: crate::operation::describe_host_key::DescribeHostKeyError) -> Self {
match err {
crate::operation::describe_host_key::DescribeHostKeyError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::describe_host_key::DescribeHostKeyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_host_key::DescribeHostKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_host_key::DescribeHostKeyError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::describe_host_key::DescribeHostKeyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_profile::DescribeProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_profile::DescribeProfileError, 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::describe_profile::DescribeProfileError> for Error {
fn from(err: crate::operation::describe_profile::DescribeProfileError) -> Self {
match err {
crate::operation::describe_profile::DescribeProfileError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::describe_profile::DescribeProfileError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_profile::DescribeProfileError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_profile::DescribeProfileError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::describe_profile::DescribeProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_policy::DescribeSecurityPolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_security_policy::DescribeSecurityPolicyError, 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::describe_security_policy::DescribeSecurityPolicyError> for Error {
fn from(err: crate::operation::describe_security_policy::DescribeSecurityPolicyError) -> Self {
match err {
crate::operation::describe_security_policy::DescribeSecurityPolicyError::InternalServiceError(inner) => {
Error::InternalServiceError(inner)
}
crate::operation::describe_security_policy::DescribeSecurityPolicyError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::describe_security_policy::DescribeSecurityPolicyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_security_policy::DescribeSecurityPolicyError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::describe_security_policy::DescribeSecurityPolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_server::DescribeServerError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_server::DescribeServerError, 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::describe_server::DescribeServerError> for Error {
fn from(err: crate::operation::describe_server::DescribeServerError) -> Self {
match err {
crate::operation::describe_server::DescribeServerError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::describe_server::DescribeServerError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_server::DescribeServerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_server::DescribeServerError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::describe_server::DescribeServerError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user::DescribeUserError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user::DescribeUserError, 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::describe_user::DescribeUserError> for Error {
fn from(err: crate::operation::describe_user::DescribeUserError) -> Self {
match err {
crate::operation::describe_user::DescribeUserError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::describe_user::DescribeUserError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_user::DescribeUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_user::DescribeUserError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::describe_user::DescribeUserError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workflow::DescribeWorkflowError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workflow::DescribeWorkflowError, 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::describe_workflow::DescribeWorkflowError> for Error {
fn from(err: crate::operation::describe_workflow::DescribeWorkflowError) -> Self {
match err {
crate::operation::describe_workflow::DescribeWorkflowError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::describe_workflow::DescribeWorkflowError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::describe_workflow::DescribeWorkflowError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::describe_workflow::DescribeWorkflowError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::describe_workflow::DescribeWorkflowError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_certificate::ImportCertificateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_certificate::ImportCertificateError, 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::import_certificate::ImportCertificateError> for Error {
fn from(err: crate::operation::import_certificate::ImportCertificateError) -> Self {
match err {
crate::operation::import_certificate::ImportCertificateError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::import_certificate::ImportCertificateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::import_certificate::ImportCertificateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::import_certificate::ImportCertificateError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::import_certificate::ImportCertificateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_host_key::ImportHostKeyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_host_key::ImportHostKeyError, 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::import_host_key::ImportHostKeyError> for Error {
fn from(err: crate::operation::import_host_key::ImportHostKeyError) -> Self {
match err {
crate::operation::import_host_key::ImportHostKeyError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::import_host_key::ImportHostKeyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::import_host_key::ImportHostKeyError::ResourceExistsException(inner) => Error::ResourceExistsException(inner),
crate::operation::import_host_key::ImportHostKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::import_host_key::ImportHostKeyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::import_host_key::ImportHostKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::import_host_key::ImportHostKeyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_ssh_public_key::ImportSshPublicKeyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_ssh_public_key::ImportSshPublicKeyError, 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::import_ssh_public_key::ImportSshPublicKeyError> for Error {
fn from(err: crate::operation::import_ssh_public_key::ImportSshPublicKeyError) -> Self {
match err {
crate::operation::import_ssh_public_key::ImportSshPublicKeyError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::import_ssh_public_key::ImportSshPublicKeyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::import_ssh_public_key::ImportSshPublicKeyError::ResourceExistsException(inner) => Error::ResourceExistsException(inner),
crate::operation::import_ssh_public_key::ImportSshPublicKeyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::import_ssh_public_key::ImportSshPublicKeyError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::import_ssh_public_key::ImportSshPublicKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::import_ssh_public_key::ImportSshPublicKeyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_accesses::ListAccessesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_accesses::ListAccessesError, 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_accesses::ListAccessesError> for Error {
fn from(err: crate::operation::list_accesses::ListAccessesError) -> Self {
match err {
crate::operation::list_accesses::ListAccessesError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::list_accesses::ListAccessesError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
crate::operation::list_accesses::ListAccessesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_accesses::ListAccessesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_accesses::ListAccessesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::list_accesses::ListAccessesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agreements::ListAgreementsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agreements::ListAgreementsError, 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_agreements::ListAgreementsError> for Error {
fn from(err: crate::operation::list_agreements::ListAgreementsError) -> Self {
match err {
crate::operation::list_agreements::ListAgreementsError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::list_agreements::ListAgreementsError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
crate::operation::list_agreements::ListAgreementsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_agreements::ListAgreementsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_agreements::ListAgreementsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::list_agreements::ListAgreementsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_certificates::ListCertificatesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_certificates::ListCertificatesError, 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_certificates::ListCertificatesError> for Error {
fn from(err: crate::operation::list_certificates::ListCertificatesError) -> Self {
match err {
crate::operation::list_certificates::ListCertificatesError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::list_certificates::ListCertificatesError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
crate::operation::list_certificates::ListCertificatesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_certificates::ListCertificatesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_certificates::ListCertificatesError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::list_certificates::ListCertificatesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connectors::ListConnectorsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connectors::ListConnectorsError, 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_connectors::ListConnectorsError> for Error {
fn from(err: crate::operation::list_connectors::ListConnectorsError) -> Self {
match err {
crate::operation::list_connectors::ListConnectorsError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::list_connectors::ListConnectorsError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
crate::operation::list_connectors::ListConnectorsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_connectors::ListConnectorsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_connectors::ListConnectorsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::list_connectors::ListConnectorsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_executions::ListExecutionsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_executions::ListExecutionsError, 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_executions::ListExecutionsError> for Error {
fn from(err: crate::operation::list_executions::ListExecutionsError) -> Self {
match err {
crate::operation::list_executions::ListExecutionsError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::list_executions::ListExecutionsError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
crate::operation::list_executions::ListExecutionsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_executions::ListExecutionsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_executions::ListExecutionsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::list_executions::ListExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_file_transfer_results::ListFileTransferResultsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_file_transfer_results::ListFileTransferResultsError, 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_file_transfer_results::ListFileTransferResultsError> for Error {
fn from(err: crate::operation::list_file_transfer_results::ListFileTransferResultsError) -> Self {
match err {
crate::operation::list_file_transfer_results::ListFileTransferResultsError::InternalServiceError(inner) => {
Error::InternalServiceError(inner)
}
crate::operation::list_file_transfer_results::ListFileTransferResultsError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_file_transfer_results::ListFileTransferResultsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_file_transfer_results::ListFileTransferResultsError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::list_file_transfer_results::ListFileTransferResultsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_host_keys::ListHostKeysError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_host_keys::ListHostKeysError, 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_host_keys::ListHostKeysError> for Error {
fn from(err: crate::operation::list_host_keys::ListHostKeysError) -> Self {
match err {
crate::operation::list_host_keys::ListHostKeysError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::list_host_keys::ListHostKeysError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
crate::operation::list_host_keys::ListHostKeysError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_host_keys::ListHostKeysError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_host_keys::ListHostKeysError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::list_host_keys::ListHostKeysError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_profiles::ListProfilesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_profiles::ListProfilesError, 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_profiles::ListProfilesError> for Error {
fn from(err: crate::operation::list_profiles::ListProfilesError) -> Self {
match err {
crate::operation::list_profiles::ListProfilesError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::list_profiles::ListProfilesError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
crate::operation::list_profiles::ListProfilesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_profiles::ListProfilesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_profiles::ListProfilesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::list_profiles::ListProfilesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_policies::ListSecurityPoliciesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_policies::ListSecurityPoliciesError, 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_security_policies::ListSecurityPoliciesError> for Error {
fn from(err: crate::operation::list_security_policies::ListSecurityPoliciesError) -> Self {
match err {
crate::operation::list_security_policies::ListSecurityPoliciesError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::list_security_policies::ListSecurityPoliciesError::InvalidNextTokenException(inner) => {
Error::InvalidNextTokenException(inner)
}
crate::operation::list_security_policies::ListSecurityPoliciesError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_security_policies::ListSecurityPoliciesError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::list_security_policies::ListSecurityPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_servers::ListServersError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_servers::ListServersError, 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_servers::ListServersError> for Error {
fn from(err: crate::operation::list_servers::ListServersError) -> Self {
match err {
crate::operation::list_servers::ListServersError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::list_servers::ListServersError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
crate::operation::list_servers::ListServersError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_servers::ListServersError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::list_servers::ListServersError::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::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidNextTokenException(inner) => {
Error::InvalidNextTokenException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(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_users::ListUsersError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_users::ListUsersError, 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_users::ListUsersError> for Error {
fn from(err: crate::operation::list_users::ListUsersError) -> Self {
match err {
crate::operation::list_users::ListUsersError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::list_users::ListUsersError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
crate::operation::list_users::ListUsersError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_users::ListUsersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::list_users::ListUsersError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::list_users::ListUsersError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workflows::ListWorkflowsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workflows::ListWorkflowsError, 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_workflows::ListWorkflowsError> for Error {
fn from(err: crate::operation::list_workflows::ListWorkflowsError) -> Self {
match err {
crate::operation::list_workflows::ListWorkflowsError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::list_workflows::ListWorkflowsError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
crate::operation::list_workflows::ListWorkflowsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::list_workflows::ListWorkflowsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::list_workflows::ListWorkflowsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_workflow_step_state::SendWorkflowStepStateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_workflow_step_state::SendWorkflowStepStateError, 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::send_workflow_step_state::SendWorkflowStepStateError> for Error {
fn from(err: crate::operation::send_workflow_step_state::SendWorkflowStepStateError) -> Self {
match err {
crate::operation::send_workflow_step_state::SendWorkflowStepStateError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::send_workflow_step_state::SendWorkflowStepStateError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::send_workflow_step_state::SendWorkflowStepStateError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::send_workflow_step_state::SendWorkflowStepStateError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::send_workflow_step_state::SendWorkflowStepStateError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::send_workflow_step_state::SendWorkflowStepStateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::send_workflow_step_state::SendWorkflowStepStateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_directory_listing::StartDirectoryListingError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_directory_listing::StartDirectoryListingError, 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_directory_listing::StartDirectoryListingError> for Error {
fn from(err: crate::operation::start_directory_listing::StartDirectoryListingError) -> Self {
match err {
crate::operation::start_directory_listing::StartDirectoryListingError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::start_directory_listing::StartDirectoryListingError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::start_directory_listing::StartDirectoryListingError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::start_directory_listing::StartDirectoryListingError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::start_directory_listing::StartDirectoryListingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::start_directory_listing::StartDirectoryListingError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_file_transfer::StartFileTransferError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_file_transfer::StartFileTransferError, 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_file_transfer::StartFileTransferError> for Error {
fn from(err: crate::operation::start_file_transfer::StartFileTransferError) -> Self {
match err {
crate::operation::start_file_transfer::StartFileTransferError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::start_file_transfer::StartFileTransferError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::start_file_transfer::StartFileTransferError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::start_file_transfer::StartFileTransferError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::start_file_transfer::StartFileTransferError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::start_file_transfer::StartFileTransferError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_server::StartServerError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_server::StartServerError, 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_server::StartServerError> for Error {
fn from(err: crate::operation::start_server::StartServerError) -> Self {
match err {
crate::operation::start_server::StartServerError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::start_server::StartServerError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::start_server::StartServerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::start_server::StartServerError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::start_server::StartServerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::start_server::StartServerError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_server::StopServerError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_server::StopServerError, 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::stop_server::StopServerError> for Error {
fn from(err: crate::operation::stop_server::StopServerError) -> Self {
match err {
crate::operation::stop_server::StopServerError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::stop_server::StopServerError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::stop_server::StopServerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::stop_server::StopServerError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::stop_server::StopServerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::stop_server::StopServerError::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::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::tag_resource::TagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::tag_resource::TagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_connection::TestConnectionError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_connection::TestConnectionError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::test_connection::TestConnectionError> for Error {
fn from(err: crate::operation::test_connection::TestConnectionError) -> Self {
match err {
crate::operation::test_connection::TestConnectionError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::test_connection::TestConnectionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::test_connection::TestConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::test_connection::TestConnectionError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::test_connection::TestConnectionError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_identity_provider::TestIdentityProviderError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_identity_provider::TestIdentityProviderError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::test_identity_provider::TestIdentityProviderError> for Error {
fn from(err: crate::operation::test_identity_provider::TestIdentityProviderError) -> Self {
match err {
crate::operation::test_identity_provider::TestIdentityProviderError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::test_identity_provider::TestIdentityProviderError::InvalidRequestException(inner) => {
Error::InvalidRequestException(inner)
}
crate::operation::test_identity_provider::TestIdentityProviderError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::test_identity_provider::TestIdentityProviderError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::test_identity_provider::TestIdentityProviderError::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::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::untag_resource::UntagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::untag_resource::UntagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_access::UpdateAccessError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_access::UpdateAccessError, 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_access::UpdateAccessError> for Error {
fn from(err: crate::operation::update_access::UpdateAccessError) -> Self {
match err {
crate::operation::update_access::UpdateAccessError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::update_access::UpdateAccessError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_access::UpdateAccessError::ResourceExistsException(inner) => Error::ResourceExistsException(inner),
crate::operation::update_access::UpdateAccessError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_access::UpdateAccessError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::update_access::UpdateAccessError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_access::UpdateAccessError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agreement::UpdateAgreementError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agreement::UpdateAgreementError, 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_agreement::UpdateAgreementError> for Error {
fn from(err: crate::operation::update_agreement::UpdateAgreementError) -> Self {
match err {
crate::operation::update_agreement::UpdateAgreementError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::update_agreement::UpdateAgreementError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_agreement::UpdateAgreementError::ResourceExistsException(inner) => Error::ResourceExistsException(inner),
crate::operation::update_agreement::UpdateAgreementError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_agreement::UpdateAgreementError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::update_agreement::UpdateAgreementError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_agreement::UpdateAgreementError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_certificate::UpdateCertificateError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_certificate::UpdateCertificateError, 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_certificate::UpdateCertificateError> for Error {
fn from(err: crate::operation::update_certificate::UpdateCertificateError) -> Self {
match err {
crate::operation::update_certificate::UpdateCertificateError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::update_certificate::UpdateCertificateError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_certificate::UpdateCertificateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_certificate::UpdateCertificateError::ServiceUnavailableException(inner) => {
Error::ServiceUnavailableException(inner)
}
crate::operation::update_certificate::UpdateCertificateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_certificate::UpdateCertificateError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connector::UpdateConnectorError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connector::UpdateConnectorError, 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_connector::UpdateConnectorError> for Error {
fn from(err: crate::operation::update_connector::UpdateConnectorError) -> Self {
match err {
crate::operation::update_connector::UpdateConnectorError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::update_connector::UpdateConnectorError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_connector::UpdateConnectorError::ResourceExistsException(inner) => Error::ResourceExistsException(inner),
crate::operation::update_connector::UpdateConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_connector::UpdateConnectorError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::update_connector::UpdateConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_connector::UpdateConnectorError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_host_key::UpdateHostKeyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_host_key::UpdateHostKeyError, 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_host_key::UpdateHostKeyError> for Error {
fn from(err: crate::operation::update_host_key::UpdateHostKeyError) -> Self {
match err {
crate::operation::update_host_key::UpdateHostKeyError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::update_host_key::UpdateHostKeyError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_host_key::UpdateHostKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_host_key::UpdateHostKeyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::update_host_key::UpdateHostKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_host_key::UpdateHostKeyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_profile::UpdateProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_profile::UpdateProfileError, 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_profile::UpdateProfileError> for Error {
fn from(err: crate::operation::update_profile::UpdateProfileError) -> Self {
match err {
crate::operation::update_profile::UpdateProfileError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::update_profile::UpdateProfileError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_profile::UpdateProfileError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_profile::UpdateProfileError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::update_profile::UpdateProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_profile::UpdateProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_server::UpdateServerError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_server::UpdateServerError, 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_server::UpdateServerError> for Error {
fn from(err: crate::operation::update_server::UpdateServerError) -> Self {
match err {
crate::operation::update_server::UpdateServerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_server::UpdateServerError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_server::UpdateServerError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::update_server::UpdateServerError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_server::UpdateServerError::ResourceExistsException(inner) => Error::ResourceExistsException(inner),
crate::operation::update_server::UpdateServerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_server::UpdateServerError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::update_server::UpdateServerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_server::UpdateServerError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user::UpdateUserError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user::UpdateUserError, 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_user::UpdateUserError> for Error {
fn from(err: crate::operation::update_user::UpdateUserError) -> Self {
match err {
crate::operation::update_user::UpdateUserError::InternalServiceError(inner) => Error::InternalServiceError(inner),
crate::operation::update_user::UpdateUserError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
crate::operation::update_user::UpdateUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_user::UpdateUserError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
crate::operation::update_user::UpdateUserError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_user::UpdateUserError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
where
O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::std::default::Default::default(),
source: err.into(),
})
}
}
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::InternalServiceError(inner) => inner.source(),
Error::InvalidNextTokenException(inner) => inner.source(),
Error::InvalidRequestException(inner) => inner.source(),
Error::ResourceExistsException(inner) => inner.source(),
Error::ResourceNotFoundException(inner) => inner.source(),
Error::ServiceUnavailableException(inner) => inner.source(),
Error::ThrottlingException(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::InternalServiceError(e) => e.request_id(),
Self::InvalidNextTokenException(e) => e.request_id(),
Self::InvalidRequestException(e) => e.request_id(),
Self::ResourceExistsException(e) => e.request_id(),
Self::ResourceNotFoundException(e) => e.request_id(),
Self::ServiceUnavailableException(e) => e.request_id(),
Self::ThrottlingException(e) => e.request_id(),
Self::Unhandled(e) => e.meta.request_id(),
}
}
}