#[non_exhaustive]
#[derive(::std::fmt::Debug)]
pub enum Error {
AccessDeniedException(crate::types::error::AccessDeniedException),
ConflictException(crate::types::error::ConflictException),
InternalServerException(crate::types::error::InternalServerException),
NotFoundException(crate::types::error::NotFoundException),
ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
ThrottlingException(crate::types::error::ThrottlingException),
ValidationException(crate::types::error::ValidationException),
Unhandled(::aws_smithy_types::error::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::NotFoundException(inner) => inner.fmt(f),
Error::ResourceNotFoundException(inner) => inner.fmt(f),
Error::ThrottlingException(inner) => inner.fmt(f),
Error::ValidationException(inner) => inner.fmt(f),
Error::Unhandled(inner) => inner.fmt(f),
}
}
}
impl From<::aws_smithy_types::error::operation::BuildError> for Error {
fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
Error::Unhandled(::aws_smithy_types::error::Unhandled::builder().source(value).build())
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_repository::AssociateRepositoryError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_repository::AssociateRepositoryError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::associate_repository::AssociateRepositoryError> for Error {
fn from(err: crate::operation::associate_repository::AssociateRepositoryError) -> Self {
match err {
crate::operation::associate_repository::AssociateRepositoryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::associate_repository::AssociateRepositoryError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::associate_repository::AssociateRepositoryError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::associate_repository::AssociateRepositoryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::associate_repository::AssociateRepositoryError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::associate_repository::AssociateRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_code_review::CreateCodeReviewError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_code_review::CreateCodeReviewError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::create_code_review::CreateCodeReviewError> for Error {
fn from(err: crate::operation::create_code_review::CreateCodeReviewError) -> Self {
match err {
crate::operation::create_code_review::CreateCodeReviewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::create_code_review::CreateCodeReviewError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::create_code_review::CreateCodeReviewError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::create_code_review::CreateCodeReviewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::create_code_review::CreateCodeReviewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::create_code_review::CreateCodeReviewError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::create_code_review::CreateCodeReviewError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_code_review::DescribeCodeReviewError, 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_review::DescribeCodeReviewError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_code_review::DescribeCodeReviewError> for Error {
fn from(err: crate::operation::describe_code_review::DescribeCodeReviewError) -> Self {
match err {
crate::operation::describe_code_review::DescribeCodeReviewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::describe_code_review::DescribeCodeReviewError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::describe_code_review::DescribeCodeReviewError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_code_review::DescribeCodeReviewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::describe_code_review::DescribeCodeReviewError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::describe_code_review::DescribeCodeReviewError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_recommendation_feedback::DescribeRecommendationFeedbackError,
R,
>,
> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_recommendation_feedback::DescribeRecommendationFeedbackError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_recommendation_feedback::DescribeRecommendationFeedbackError> for Error {
fn from(err: crate::operation::describe_recommendation_feedback::DescribeRecommendationFeedbackError) -> Self {
match err {
crate::operation::describe_recommendation_feedback::DescribeRecommendationFeedbackError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_recommendation_feedback::DescribeRecommendationFeedbackError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_recommendation_feedback::DescribeRecommendationFeedbackError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::describe_recommendation_feedback::DescribeRecommendationFeedbackError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_recommendation_feedback::DescribeRecommendationFeedbackError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_recommendation_feedback::DescribeRecommendationFeedbackError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R>
From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_repository_association::DescribeRepositoryAssociationError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::describe_repository_association::DescribeRepositoryAssociationError,
R,
>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::describe_repository_association::DescribeRepositoryAssociationError> for Error {
fn from(err: crate::operation::describe_repository_association::DescribeRepositoryAssociationError) -> Self {
match err {
crate::operation::describe_repository_association::DescribeRepositoryAssociationError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::describe_repository_association::DescribeRepositoryAssociationError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::describe_repository_association::DescribeRepositoryAssociationError::NotFoundException(inner) => {
Error::NotFoundException(inner)
}
crate::operation::describe_repository_association::DescribeRepositoryAssociationError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::describe_repository_association::DescribeRepositoryAssociationError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::describe_repository_association::DescribeRepositoryAssociationError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_repository::DisassociateRepositoryError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_repository::DisassociateRepositoryError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::disassociate_repository::DisassociateRepositoryError> for Error {
fn from(err: crate::operation::disassociate_repository::DisassociateRepositoryError) -> Self {
match err {
crate::operation::disassociate_repository::DisassociateRepositoryError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::disassociate_repository::DisassociateRepositoryError::ConflictException(inner) => Error::ConflictException(inner),
crate::operation::disassociate_repository::DisassociateRepositoryError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::disassociate_repository::DisassociateRepositoryError::NotFoundException(inner) => Error::NotFoundException(inner),
crate::operation::disassociate_repository::DisassociateRepositoryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::disassociate_repository::DisassociateRepositoryError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::disassociate_repository::DisassociateRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_reviews::ListCodeReviewsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_reviews::ListCodeReviewsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_code_reviews::ListCodeReviewsError> for Error {
fn from(err: crate::operation::list_code_reviews::ListCodeReviewsError) -> Self {
match err {
crate::operation::list_code_reviews::ListCodeReviewsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_code_reviews::ListCodeReviewsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_code_reviews::ListCodeReviewsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_code_reviews::ListCodeReviewsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_code_reviews::ListCodeReviewsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommendation_feedback::ListRecommendationFeedbackError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommendation_feedback::ListRecommendationFeedbackError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_recommendation_feedback::ListRecommendationFeedbackError> for Error {
fn from(err: crate::operation::list_recommendation_feedback::ListRecommendationFeedbackError) -> Self {
match err {
crate::operation::list_recommendation_feedback::ListRecommendationFeedbackError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::list_recommendation_feedback::ListRecommendationFeedbackError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_recommendation_feedback::ListRecommendationFeedbackError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_recommendation_feedback::ListRecommendationFeedbackError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_recommendation_feedback::ListRecommendationFeedbackError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_recommendation_feedback::ListRecommendationFeedbackError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommendations::ListRecommendationsError, R>> for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommendations::ListRecommendationsError, R>) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_recommendations::ListRecommendationsError> for Error {
fn from(err: crate::operation::list_recommendations::ListRecommendationsError) -> Self {
match err {
crate::operation::list_recommendations::ListRecommendationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
crate::operation::list_recommendations::ListRecommendationsError::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::list_recommendations::ListRecommendationsError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::list_recommendations::ListRecommendationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
crate::operation::list_recommendations::ListRecommendationsError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::list_recommendations::ListRecommendationsError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_repository_associations::ListRepositoryAssociationsError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_repository_associations::ListRepositoryAssociationsError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::list_repository_associations::ListRepositoryAssociationsError> for Error {
fn from(err: crate::operation::list_repository_associations::ListRepositoryAssociationsError) -> Self {
match err {
crate::operation::list_repository_associations::ListRepositoryAssociationsError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_repository_associations::ListRepositoryAssociationsError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::list_repository_associations::ListRepositoryAssociationsError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::list_repository_associations::ListRepositoryAssociationsError::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(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
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::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(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::put_recommendation_feedback::PutRecommendationFeedbackError, R>>
for Error
where
R: Send + Sync + std::fmt::Debug + 'static,
{
fn from(
err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_recommendation_feedback::PutRecommendationFeedbackError, R>,
) -> Self {
match err {
::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
_ => Error::Unhandled(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
impl From<crate::operation::put_recommendation_feedback::PutRecommendationFeedbackError> for Error {
fn from(err: crate::operation::put_recommendation_feedback::PutRecommendationFeedbackError) -> Self {
match err {
crate::operation::put_recommendation_feedback::PutRecommendationFeedbackError::AccessDeniedException(inner) => {
Error::AccessDeniedException(inner)
}
crate::operation::put_recommendation_feedback::PutRecommendationFeedbackError::InternalServerException(inner) => {
Error::InternalServerException(inner)
}
crate::operation::put_recommendation_feedback::PutRecommendationFeedbackError::ResourceNotFoundException(inner) => {
Error::ResourceNotFoundException(inner)
}
crate::operation::put_recommendation_feedback::PutRecommendationFeedbackError::ThrottlingException(inner) => {
Error::ThrottlingException(inner)
}
crate::operation::put_recommendation_feedback::PutRecommendationFeedbackError::ValidationException(inner) => {
Error::ValidationException(inner)
}
crate::operation::put_recommendation_feedback::PutRecommendationFeedbackError::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(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
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::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(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(
::aws_smithy_types::error::Unhandled::builder()
.meta(::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone())
.source(err)
.build(),
),
}
}
}
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::InternalServerException(inner) => Error::InternalServerException(inner),
crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
}
}
}
impl ::std::error::Error for Error {
fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
match self {
Error::AccessDeniedException(inner) => inner.source(),
Error::ConflictException(inner) => inner.source(),
Error::InternalServerException(inner) => inner.source(),
Error::NotFoundException(inner) => inner.source(),
Error::ResourceNotFoundException(inner) => inner.source(),
Error::ThrottlingException(inner) => inner.source(),
Error::ValidationException(inner) => inner.source(),
Error::Unhandled(inner) => inner.source(),
}
}
}
impl ::aws_http::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::NotFoundException(e) => e.request_id(),
Self::ResourceNotFoundException(e) => e.request_id(),
Self::ThrottlingException(e) => e.request_id(),
Self::ValidationException(e) => e.request_id(),
Self::Unhandled(e) => e.request_id(),
}
}
}