#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
AccountLimitExceededException(crate::types::error::AccountLimitExceededException),
InvalidInputException(crate::types::error::InvalidInputException),
OAuthProviderException(crate::types::error::OAuthProviderException),
ResourceAlreadyExistsException(crate::types::error::ResourceAlreadyExistsException),
ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
#[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::AccountLimitExceededException(inner) => inner.fmt(f),
Error::InvalidInputException(inner) => inner.fmt(f),
Error::OAuthProviderException(inner) => inner.fmt(f),
Error::ResourceAlreadyExistsException(inner) => inner.fmt(f),
Error::ResourceNotFoundException(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::AccountLimitExceededException(inner) => inner.meta(),
Self::InvalidInputException(inner) => inner.meta(),
Self::OAuthProviderException(inner) => inner.meta(),
Self::ResourceAlreadyExistsException(inner) => inner.meta(),
Self::ResourceNotFoundException(inner) => inner.meta(),
Self::Unhandled(inner) => &inner.meta,
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_builds::BatchDeleteBuildsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_builds::BatchDeleteBuildsError, 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::batch_delete_builds::BatchDeleteBuildsError> for Error {
fn from(err: crate::operation::batch_delete_builds::BatchDeleteBuildsError) -> Self {
match err {
crate::operation::batch_delete_builds::BatchDeleteBuildsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::batch_delete_builds::BatchDeleteBuildsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_build_batches::BatchGetBuildBatchesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_build_batches::BatchGetBuildBatchesError, 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::batch_get_build_batches::BatchGetBuildBatchesError> for Error {
fn from(err: crate::operation::batch_get_build_batches::BatchGetBuildBatchesError) -> Self {
match err {
crate::operation::batch_get_build_batches::BatchGetBuildBatchesError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::batch_get_build_batches::BatchGetBuildBatchesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_builds::BatchGetBuildsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_builds::BatchGetBuildsError, 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::batch_get_builds::BatchGetBuildsError> for Error {
fn from(err: crate::operation::batch_get_builds::BatchGetBuildsError) -> Self {
match err {
crate::operation::batch_get_builds::BatchGetBuildsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::batch_get_builds::BatchGetBuildsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_fleets::BatchGetFleetsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_fleets::BatchGetFleetsError, 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::batch_get_fleets::BatchGetFleetsError> for Error {
fn from(err: crate::operation::batch_get_fleets::BatchGetFleetsError) -> Self {
match err {
crate::operation::batch_get_fleets::BatchGetFleetsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::batch_get_fleets::BatchGetFleetsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_projects::BatchGetProjectsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_projects::BatchGetProjectsError, 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::batch_get_projects::BatchGetProjectsError> for Error {
fn from(err: crate::operation::batch_get_projects::BatchGetProjectsError) -> Self {
match err {
crate::operation::batch_get_projects::BatchGetProjectsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::batch_get_projects::BatchGetProjectsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_report_groups::BatchGetReportGroupsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_report_groups::BatchGetReportGroupsError, 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::batch_get_report_groups::BatchGetReportGroupsError> for Error {
fn from(err: crate::operation::batch_get_report_groups::BatchGetReportGroupsError) -> Self {
match err {
crate::operation::batch_get_report_groups::BatchGetReportGroupsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::batch_get_report_groups::BatchGetReportGroupsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_reports::BatchGetReportsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_reports::BatchGetReportsError, 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::batch_get_reports::BatchGetReportsError> for Error {
fn from(err: crate::operation::batch_get_reports::BatchGetReportsError) -> Self {
match err {
crate::operation::batch_get_reports::BatchGetReportsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::batch_get_reports::BatchGetReportsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet::CreateFleetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet::CreateFleetError, 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_fleet::CreateFleetError> for Error {
fn from(err: crate::operation::create_fleet::CreateFleetError) -> Self {
match err {
crate::operation::create_fleet::CreateFleetError::AccountLimitExceededException(inner) => Error::AccountLimitExceededException(inner),
crate::operation::create_fleet::CreateFleetError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::create_fleet::CreateFleetError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
crate::operation::create_fleet::CreateFleetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, 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_project::CreateProjectError> for Error {
fn from(err: crate::operation::create_project::CreateProjectError) -> Self {
match err {
crate::operation::create_project::CreateProjectError::AccountLimitExceededException(inner) => Error::AccountLimitExceededException(inner),
crate::operation::create_project::CreateProjectError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::create_project::CreateProjectError::ResourceAlreadyExistsException(inner) => {
Error::ResourceAlreadyExistsException(inner)
}
crate::operation::create_project::CreateProjectError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_report_group::CreateReportGroupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_report_group::CreateReportGroupError, 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_report_group::CreateReportGroupError> for Error {
fn from(err: crate::operation::create_report_group::CreateReportGroupError) -> Self {
match err {
crate::operation::create_report_group::CreateReportGroupError::AccountLimitExceededException(inner) => {
Error::AccountLimitExceededException(inner)
}
crate::operation::create_report_group::CreateReportGroupError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::create_report_group::CreateReportGroupError::ResourceAlreadyExistsException(inner) => {
Error::ResourceAlreadyExistsException(inner)
}
crate::operation::create_report_group::CreateReportGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_webhook::CreateWebhookError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_webhook::CreateWebhookError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::create_webhook::CreateWebhookError> for Error {
fn from(err: crate::operation::create_webhook::CreateWebhookError) -> Self {
match err {
crate::operation::create_webhook::CreateWebhookError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::create_webhook::CreateWebhookError::OAuthProviderException(inner) => Error::OAuthProviderException(inner),
crate::operation::create_webhook::CreateWebhookError::ResourceAlreadyExistsException(inner) => {
Error::ResourceAlreadyExistsException(inner)
}
crate::operation::create_webhook::CreateWebhookError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_webhook::CreateWebhookError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_build_batch::DeleteBuildBatchError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_build_batch::DeleteBuildBatchError, 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_build_batch::DeleteBuildBatchError> for Error {
fn from(err: crate::operation::delete_build_batch::DeleteBuildBatchError) -> Self {
match err {
crate::operation::delete_build_batch::DeleteBuildBatchError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::delete_build_batch::DeleteBuildBatchError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleet::DeleteFleetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleet::DeleteFleetError, 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_fleet::DeleteFleetError> for Error {
fn from(err: crate::operation::delete_fleet::DeleteFleetError) -> Self {
match err {
crate::operation::delete_fleet::DeleteFleetError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::delete_fleet::DeleteFleetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, 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_project::DeleteProjectError> for Error {
fn from(err: crate::operation::delete_project::DeleteProjectError) -> Self {
match err {
crate::operation::delete_project::DeleteProjectError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::delete_project::DeleteProjectError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_report::DeleteReportError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_report::DeleteReportError, 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_report::DeleteReportError> for Error {
fn from(err: crate::operation::delete_report::DeleteReportError) -> Self {
match err {
crate::operation::delete_report::DeleteReportError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::delete_report::DeleteReportError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_report_group::DeleteReportGroupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_report_group::DeleteReportGroupError, 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_report_group::DeleteReportGroupError> for Error {
fn from(err: crate::operation::delete_report_group::DeleteReportGroupError) -> Self {
match err {
crate::operation::delete_report_group::DeleteReportGroupError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::delete_report_group::DeleteReportGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
match err {
crate::operation::delete_resource_policy::DeleteResourcePolicyError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_source_credentials::DeleteSourceCredentialsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_source_credentials::DeleteSourceCredentialsError, 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_source_credentials::DeleteSourceCredentialsError> for Error {
fn from(err: crate::operation::delete_source_credentials::DeleteSourceCredentialsError) -> Self {
match err {
crate::operation::delete_source_credentials::DeleteSourceCredentialsError::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::operation::delete_source_credentials::DeleteSourceCredentialsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::delete_source_credentials::DeleteSourceCredentialsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_webhook::DeleteWebhookError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_webhook::DeleteWebhookError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::delete_webhook::DeleteWebhookError> for Error {
fn from(err: crate::operation::delete_webhook::DeleteWebhookError) -> Self {
match err {
crate::operation::delete_webhook::DeleteWebhookError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::delete_webhook::DeleteWebhookError::OAuthProviderException(inner) => Error::OAuthProviderException(inner),
crate::operation::delete_webhook::DeleteWebhookError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::delete_webhook::DeleteWebhookError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_code_coverages::DescribeCodeCoveragesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_code_coverages::DescribeCodeCoveragesError, 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_code_coverages::DescribeCodeCoveragesError> for Error {
fn from(err: crate::operation::describe_code_coverages::DescribeCodeCoveragesError) -> Self {
match err {
crate::operation::describe_code_coverages::DescribeCodeCoveragesError::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::operation::describe_code_coverages::DescribeCodeCoveragesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_cases::DescribeTestCasesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_test_cases::DescribeTestCasesError, 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_test_cases::DescribeTestCasesError> for Error {
fn from(err: crate::operation::describe_test_cases::DescribeTestCasesError) -> Self {
match err {
crate::operation::describe_test_cases::DescribeTestCasesError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::describe_test_cases::DescribeTestCasesError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_test_cases::DescribeTestCasesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_report_group_trend::GetReportGroupTrendError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_report_group_trend::GetReportGroupTrendError, 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_report_group_trend::GetReportGroupTrendError> for Error {
fn from(err: crate::operation::get_report_group_trend::GetReportGroupTrendError) -> Self {
match err {
crate::operation::get_report_group_trend::GetReportGroupTrendError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::get_report_group_trend::GetReportGroupTrendError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_report_group_trend::GetReportGroupTrendError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::get_resource_policy::GetResourcePolicyError> for Error {
fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
match err {
crate::operation::get_resource_policy::GetResourcePolicyError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_source_credentials::ImportSourceCredentialsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_source_credentials::ImportSourceCredentialsError, 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_source_credentials::ImportSourceCredentialsError> for Error {
fn from(err: crate::operation::import_source_credentials::ImportSourceCredentialsError) -> Self {
match err {
crate::operation::import_source_credentials::ImportSourceCredentialsError::AccountLimitExceededException(inner) => {
Error::AccountLimitExceededException(inner)
}
crate::operation::import_source_credentials::ImportSourceCredentialsError::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::operation::import_source_credentials::ImportSourceCredentialsError::ResourceAlreadyExistsException(inner) => {
Error::ResourceAlreadyExistsException(inner)
}
crate::operation::import_source_credentials::ImportSourceCredentialsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invalidate_project_cache::InvalidateProjectCacheError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::invalidate_project_cache::InvalidateProjectCacheError, 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::invalidate_project_cache::InvalidateProjectCacheError> for Error {
fn from(err: crate::operation::invalidate_project_cache::InvalidateProjectCacheError) -> Self {
match err {
crate::operation::invalidate_project_cache::InvalidateProjectCacheError::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::operation::invalidate_project_cache::InvalidateProjectCacheError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::invalidate_project_cache::InvalidateProjectCacheError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_build_batches::ListBuildBatchesError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_build_batches::ListBuildBatchesError, 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_build_batches::ListBuildBatchesError> for Error {
fn from(err: crate::operation::list_build_batches::ListBuildBatchesError) -> Self {
match err {
crate::operation::list_build_batches::ListBuildBatchesError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::list_build_batches::ListBuildBatchesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError, 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_build_batches_for_project::ListBuildBatchesForProjectError> for Error {
fn from(err: crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError) -> Self {
match err {
crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_build_batches_for_project::ListBuildBatchesForProjectError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_builds::ListBuildsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_builds::ListBuildsError, 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_builds::ListBuildsError> for Error {
fn from(err: crate::operation::list_builds::ListBuildsError) -> Self {
match err {
crate::operation::list_builds::ListBuildsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::list_builds::ListBuildsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_builds_for_project::ListBuildsForProjectError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_builds_for_project::ListBuildsForProjectError, 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_builds_for_project::ListBuildsForProjectError> for Error {
fn from(err: crate::operation::list_builds_for_project::ListBuildsForProjectError) -> Self {
match err {
crate::operation::list_builds_for_project::ListBuildsForProjectError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::list_builds_for_project::ListBuildsForProjectError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_builds_for_project::ListBuildsForProjectError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_curated_environment_images::ListCuratedEnvironmentImagesError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::list_curated_environment_images::ListCuratedEnvironmentImagesError,
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_curated_environment_images::ListCuratedEnvironmentImagesError> for Error {
fn from(err: crate::operation::list_curated_environment_images::ListCuratedEnvironmentImagesError) -> Self {
match err {
crate::operation::list_curated_environment_images::ListCuratedEnvironmentImagesError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fleets::ListFleetsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fleets::ListFleetsError, 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_fleets::ListFleetsError> for Error {
fn from(err: crate::operation::list_fleets::ListFleetsError) -> Self {
match err {
crate::operation::list_fleets::ListFleetsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::list_fleets::ListFleetsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, 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_projects::ListProjectsError> for Error {
fn from(err: crate::operation::list_projects::ListProjectsError) -> Self {
match err {
crate::operation::list_projects::ListProjectsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::list_projects::ListProjectsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_report_groups::ListReportGroupsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_report_groups::ListReportGroupsError, 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_report_groups::ListReportGroupsError> for Error {
fn from(err: crate::operation::list_report_groups::ListReportGroupsError) -> Self {
match err {
crate::operation::list_report_groups::ListReportGroupsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::list_report_groups::ListReportGroupsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reports::ListReportsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reports::ListReportsError, 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_reports::ListReportsError> for Error {
fn from(err: crate::operation::list_reports::ListReportsError) -> Self {
match err {
crate::operation::list_reports::ListReportsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::list_reports::ListReportsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reports_for_report_group::ListReportsForReportGroupError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reports_for_report_group::ListReportsForReportGroupError, 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_reports_for_report_group::ListReportsForReportGroupError> for Error {
fn from(err: crate::operation::list_reports_for_report_group::ListReportsForReportGroupError) -> Self {
match err {
crate::operation::list_reports_for_report_group::ListReportsForReportGroupError::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::operation::list_reports_for_report_group::ListReportsForReportGroupError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_reports_for_report_group::ListReportsForReportGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_shared_projects::ListSharedProjectsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_shared_projects::ListSharedProjectsError, 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_shared_projects::ListSharedProjectsError> for Error {
fn from(err: crate::operation::list_shared_projects::ListSharedProjectsError) -> Self {
match err {
crate::operation::list_shared_projects::ListSharedProjectsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::list_shared_projects::ListSharedProjectsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_shared_report_groups::ListSharedReportGroupsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_shared_report_groups::ListSharedReportGroupsError, 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_shared_report_groups::ListSharedReportGroupsError> for Error {
fn from(err: crate::operation::list_shared_report_groups::ListSharedReportGroupsError) -> Self {
match err {
crate::operation::list_shared_report_groups::ListSharedReportGroupsError::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::operation::list_shared_report_groups::ListSharedReportGroupsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_source_credentials::ListSourceCredentialsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_source_credentials::ListSourceCredentialsError, 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_source_credentials::ListSourceCredentialsError> for Error {
fn from(err: crate::operation::list_source_credentials::ListSourceCredentialsError) -> Self {
match err {
crate::operation::list_source_credentials::ListSourceCredentialsError::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::operation::list_source_credentials::ListSourceCredentialsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
match err {
crate::operation::put_resource_policy::PutResourcePolicyError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_build::RetryBuildError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_build::RetryBuildError, 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::retry_build::RetryBuildError> for Error {
fn from(err: crate::operation::retry_build::RetryBuildError) -> Self {
match err {
crate::operation::retry_build::RetryBuildError::AccountLimitExceededException(inner) => Error::AccountLimitExceededException(inner),
crate::operation::retry_build::RetryBuildError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::retry_build::RetryBuildError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::retry_build::RetryBuildError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_build_batch::RetryBuildBatchError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_build_batch::RetryBuildBatchError, 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::retry_build_batch::RetryBuildBatchError> for Error {
fn from(err: crate::operation::retry_build_batch::RetryBuildBatchError) -> Self {
match err {
crate::operation::retry_build_batch::RetryBuildBatchError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::retry_build_batch::RetryBuildBatchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::retry_build_batch::RetryBuildBatchError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_build::StartBuildError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_build::StartBuildError, 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_build::StartBuildError> for Error {
fn from(err: crate::operation::start_build::StartBuildError) -> Self {
match err {
crate::operation::start_build::StartBuildError::AccountLimitExceededException(inner) => Error::AccountLimitExceededException(inner),
crate::operation::start_build::StartBuildError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::start_build::StartBuildError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::start_build::StartBuildError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_build_batch::StartBuildBatchError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_build_batch::StartBuildBatchError, 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_build_batch::StartBuildBatchError> for Error {
fn from(err: crate::operation::start_build_batch::StartBuildBatchError) -> Self {
match err {
crate::operation::start_build_batch::StartBuildBatchError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::start_build_batch::StartBuildBatchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::start_build_batch::StartBuildBatchError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_build::StopBuildError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_build::StopBuildError, 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_build::StopBuildError> for Error {
fn from(err: crate::operation::stop_build::StopBuildError) -> Self {
match err {
crate::operation::stop_build::StopBuildError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::stop_build::StopBuildError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::stop_build::StopBuildError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_build_batch::StopBuildBatchError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_build_batch::StopBuildBatchError, 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_build_batch::StopBuildBatchError> for Error {
fn from(err: crate::operation::stop_build_batch::StopBuildBatchError) -> Self {
match err {
crate::operation::stop_build_batch::StopBuildBatchError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::stop_build_batch::StopBuildBatchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::stop_build_batch::StopBuildBatchError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fleet::UpdateFleetError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fleet::UpdateFleetError, 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_fleet::UpdateFleetError> for Error {
fn from(err: crate::operation::update_fleet::UpdateFleetError) -> Self {
match err {
crate::operation::update_fleet::UpdateFleetError::AccountLimitExceededException(inner) => Error::AccountLimitExceededException(inner),
crate::operation::update_fleet::UpdateFleetError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::update_fleet::UpdateFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_fleet::UpdateFleetError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, 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_project::UpdateProjectError> for Error {
fn from(err: crate::operation::update_project::UpdateProjectError) -> Self {
match err {
crate::operation::update_project::UpdateProjectError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::update_project::UpdateProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_project::UpdateProjectError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project_visibility::UpdateProjectVisibilityError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project_visibility::UpdateProjectVisibilityError, 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_project_visibility::UpdateProjectVisibilityError> for Error {
fn from(err: crate::operation::update_project_visibility::UpdateProjectVisibilityError) -> Self {
match err {
crate::operation::update_project_visibility::UpdateProjectVisibilityError::InvalidInputException(inner) => {
Error::InvalidInputException(inner)
}
crate::operation::update_project_visibility::UpdateProjectVisibilityError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_project_visibility::UpdateProjectVisibilityError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_report_group::UpdateReportGroupError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_report_group::UpdateReportGroupError, 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_report_group::UpdateReportGroupError> for Error {
fn from(err: crate::operation::update_report_group::UpdateReportGroupError) -> Self {
match err {
crate::operation::update_report_group::UpdateReportGroupError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::update_report_group::UpdateReportGroupError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::update_report_group::UpdateReportGroupError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_webhook::UpdateWebhookError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_webhook::UpdateWebhookError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
source: err.into(),
}),
}
}
}
impl From<crate::operation::update_webhook::UpdateWebhookError> for Error {
fn from(err: crate::operation::update_webhook::UpdateWebhookError) -> Self {
match err {
crate::operation::update_webhook::UpdateWebhookError::InvalidInputException(inner) => Error::InvalidInputException(inner),
crate::operation::update_webhook::UpdateWebhookError::OAuthProviderException(inner) => Error::OAuthProviderException(inner),
crate::operation::update_webhook::UpdateWebhookError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::update_webhook::UpdateWebhookError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl ::std::error::Error for Error {
fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
match self {
Error::AccountLimitExceededException(inner) => inner.source(),
Error::InvalidInputException(inner) => inner.source(),
Error::OAuthProviderException(inner) => inner.source(),
Error::ResourceAlreadyExistsException(inner) => inner.source(),
Error::ResourceNotFoundException(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::AccountLimitExceededException(e) => e.request_id(),
Self::InvalidInputException(e) => e.request_id(),
Self::OAuthProviderException(e) => e.request_id(),
Self::ResourceAlreadyExistsException(e) => e.request_id(),
Self::ResourceNotFoundException(e) => e.request_id(),
Self::Unhandled(e) => e.meta.request_id(),
}
}
}