#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
AccessDeniedException(crate::types::error::AccessDeniedException),
ConflictException(crate::types::error::ConflictException),
InternalServerException(crate::types::error::InternalServerException),
ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
ThrottlingException(crate::types::error::ThrottlingException),
ValidationException(crate::types::error::ValidationException),
#[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
variable wildcard pattern and check `.code()`:
\
`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
\
See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
Unhandled(crate::error::sealed_unhandled::Unhandled),
}
impl ::std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Error::AccessDeniedException(inner) => inner.fmt(f),
Error::ConflictException(inner) => inner.fmt(f),
Error::InternalServerException(inner) => inner.fmt(f),
Error::ResourceNotFoundException(inner) => inner.fmt(f),
Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
Error::ThrottlingException(inner) => inner.fmt(f),
Error::ValidationException(inner) => inner.fmt(f),
Error::Unhandled(_) => {
if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
write!(f, "unhandled error ({code})")
} else {
f.write_str("unhandled error")
}
}
}
}
}
impl From<::aws_smithy_types::error::operation::BuildError> for Error {
fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
source: value.into(),
meta: ::std::default::Default::default(),
})
}
}
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
match self {
Self::AccessDeniedException(inner) => inner.meta(),
Self::ConflictException(inner) => inner.meta(),
Self::InternalServerException(inner) => inner.meta(),
Self::ResourceNotFoundException(inner) => inner.meta(),
Self::ServiceQuotaExceededException(inner) => inner.meta(),
Self::ThrottlingException(inner) => inner.meta(),
Self::ValidationException(inner) => inner.meta(),
Self::Unhandled(inner) => &inner.meta,
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_brand_profile::CreateBrandProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_brand_profile::CreateBrandProfileError, 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_brand_profile::CreateBrandProfileError> for Error {
fn from(err: crate::operation::create_brand_profile::CreateBrandProfileError) -> Self {
match err {
crate::operation::create_brand_profile::CreateBrandProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_brand_profile::CreateBrandProfileError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_brand_profile::CreateBrandProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_brand_profile::CreateBrandProfileError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_brand_profile::CreateBrandProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_brand_profile::CreateBrandProfileError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_brand_profile::CreateBrandProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError,
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_brand_profile_attributes::CreateBrandProfileAttributesError> for Error {
fn from(err: crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError) -> Self {
match err {
crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError,
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_brand_profile_from_registration::CreateBrandProfileFromRegistrationError> for Error {
fn from(err: crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError) -> Self {
match err {
crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError::ServiceQuotaExceededException(
inner,
) => Error::ServiceQuotaExceededException(inner),
crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError, R>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError,
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_notify_code_configuration::CreateNotifyCodeConfigurationError> for Error {
fn from(err: crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError) -> Self {
match err {
crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError,
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_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError> for Error {
fn from(err: crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError) -> Self {
match err {
crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_brand_profile::DeleteBrandProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_brand_profile::DeleteBrandProfileError, 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_brand_profile::DeleteBrandProfileError> for Error {
fn from(err: crate::operation::delete_brand_profile::DeleteBrandProfileError) -> Self {
match err {
crate::operation::delete_brand_profile::DeleteBrandProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::delete_brand_profile::DeleteBrandProfileError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::delete_brand_profile::DeleteBrandProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::delete_brand_profile::DeleteBrandProfileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_brand_profile::DeleteBrandProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::delete_brand_profile::DeleteBrandProfileError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::delete_brand_profile::DeleteBrandProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError,
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_brand_profile_attribute::DeleteBrandProfileAttributeError> for Error {
fn from(err: crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError) -> Self {
match err {
crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError, R>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError,
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_notify_code_configuration::DeleteNotifyCodeConfigurationError> for Error {
fn from(err: crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError) -> Self {
match err {
crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_brand_profile::GetBrandProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_brand_profile::GetBrandProfileError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_brand_profile::GetBrandProfileError> for Error {
fn from(err: crate::operation::get_brand_profile::GetBrandProfileError) -> Self {
match err {
crate::operation::get_brand_profile::GetBrandProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_brand_profile::GetBrandProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_brand_profile::GetBrandProfileError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_brand_profile::GetBrandProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_brand_profile::GetBrandProfileError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_brand_profile::GetBrandProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError> for Error {
fn from(err: crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError) -> Self {
match err {
crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job::GetJobError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job::GetJobError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_job::GetJobError> for Error {
fn from(err: crate::operation::get_job::GetJobError) -> Self {
match err {
crate::operation::get_job::GetJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::get_job::GetJobError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::get_job::GetJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::get_job::GetJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::get_job::GetJobError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::get_job::GetJobError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError> for Error {
fn from(err: crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError) -> Self {
match err {
crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError, 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_brand_profile_attributes::ListBrandProfileAttributesError> for Error {
fn from(err: crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError) -> Self {
match err {
crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_brand_profiles::ListBrandProfilesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_brand_profiles::ListBrandProfilesError, 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_brand_profiles::ListBrandProfilesError> for Error {
fn from(err: crate::operation::list_brand_profiles::ListBrandProfilesError) -> Self {
match err {
crate::operation::list_brand_profiles::ListBrandProfilesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_brand_profiles::ListBrandProfilesError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_brand_profiles::ListBrandProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_brand_profiles::ListBrandProfilesError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_brand_profiles::ListBrandProfilesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, 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_jobs::ListJobsError> for Error {
fn from(err: crate::operation::list_jobs::ListJobsError) -> Self {
match err {
crate::operation::list_jobs::ListJobsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_jobs::ListJobsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_jobs::ListJobsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_jobs::ListJobsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_jobs::ListJobsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notify_code_configurations::ListNotifyCodeConfigurationsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_notify_code_configurations::ListNotifyCodeConfigurationsError,
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_notify_code_configurations::ListNotifyCodeConfigurationsError> for Error {
fn from(err: crate::operation::list_notify_code_configurations::ListNotifyCodeConfigurationsError) -> Self {
match err {
crate::operation::list_notify_code_configurations::ListNotifyCodeConfigurationsError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::list_notify_code_configurations::ListNotifyCodeConfigurationsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_notify_code_configurations::ListNotifyCodeConfigurationsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_notify_code_configurations::ListNotifyCodeConfigurationsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_notify_code_configurations::ListNotifyCodeConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError,
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_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError> for Error {
fn from(err: crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError) -> Self {
match err {
crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError::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::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError, 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_notify_code_verification::SendNotifyCodeVerificationError> for Error {
fn from(err: crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError) -> Self {
match err {
crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError::ServiceQuotaExceededException(inner) => {
Error::ServiceQuotaExceededException(inner)
}
crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError::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::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::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::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_brand_profile::UpdateBrandProfileError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_brand_profile::UpdateBrandProfileError, 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_brand_profile::UpdateBrandProfileError> for Error {
fn from(err: crate::operation::update_brand_profile::UpdateBrandProfileError) -> Self {
match err {
crate::operation::update_brand_profile::UpdateBrandProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::update_brand_profile::UpdateBrandProfileError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::update_brand_profile::UpdateBrandProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::update_brand_profile::UpdateBrandProfileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_brand_profile::UpdateBrandProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::update_brand_profile::UpdateBrandProfileError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::update_brand_profile::UpdateBrandProfileError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError,
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_brand_profile_attribute::UpdateBrandProfileAttributeError> for Error {
fn from(err: crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError) -> Self {
match err {
crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError,
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_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError> for Error {
fn from(err: crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError) -> Self {
match err {
crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError, R>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError,
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_notify_code_configuration::UpdateNotifyCodeConfigurationError> for Error {
fn from(err: crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError) -> Self {
match err {
crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError,
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_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError> for Error {
fn from(err: crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError) -> Self {
match err {
crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError::ConflictException(inner) => {
Error::ConflictException(inner)
}
crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError::Unhandled(inner) => {
Error::Unhandled(inner)
}
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError> for Error {
fn from(err: crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError) -> Self {
match err {
crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError::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::InternalServerException(inner) => inner.source(),
Error::ResourceNotFoundException(inner) => inner.source(),
Error::ServiceQuotaExceededException(inner) => inner.source(),
Error::ThrottlingException(inner) => inner.source(),
Error::ValidationException(inner) => inner.source(),
Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
}
}
}
impl ::aws_types::request_id::RequestId for Error {
fn request_id(&self) -> Option<&str> {
match self {
Self::AccessDeniedException(e) => e.request_id(),
Self::ConflictException(e) => e.request_id(),
Self::InternalServerException(e) => e.request_id(),
Self::ResourceNotFoundException(e) => e.request_id(),
Self::ServiceQuotaExceededException(e) => e.request_id(),
Self::ThrottlingException(e) => e.request_id(),
Self::ValidationException(e) => e.request_id(),
Self::Unhandled(e) => e.meta.request_id(),
}
}
}