aws_sdk_costexplorer::error

Trait ProvideErrorMetadata

Source
pub trait ProvideErrorMetadata {
    // Required method
    fn meta(&self) -> &ErrorMetadata;

    // Provided methods
    fn code(&self) -> Option<&str> { ... }
    fn message(&self) -> Option<&str> { ... }
}
Expand description

Trait to retrieve error metadata from a result

Required Methods§

Source

fn meta(&self) -> &ErrorMetadata

Returns error metadata, which includes the error code, message, request ID, and potentially additional information.

Provided Methods§

Source

fn code(&self) -> Option<&str>

Returns the error code if it’s available.

Source

fn message(&self) -> Option<&str>

Returns the error message, if there is one.

Implementations on Foreign Types§

Source§

impl<E, R> ProvideErrorMetadata for SdkError<E, R>

Source§

impl<O, E> ProvideErrorMetadata for WaiterError<O, E>

Implementors§

Source§

impl ProvideErrorMetadata for Error

Source§

impl ProvideErrorMetadata for CreateAnomalyMonitorError

Source§

impl ProvideErrorMetadata for CreateAnomalySubscriptionError

Source§

impl ProvideErrorMetadata for CreateCostCategoryDefinitionError

Source§

impl ProvideErrorMetadata for DeleteAnomalyMonitorError

Source§

impl ProvideErrorMetadata for DeleteAnomalySubscriptionError

Source§

impl ProvideErrorMetadata for DeleteCostCategoryDefinitionError

Source§

impl ProvideErrorMetadata for DescribeCostCategoryDefinitionError

Source§

impl ProvideErrorMetadata for GetAnomaliesError

Source§

impl ProvideErrorMetadata for GetAnomalyMonitorsError

Source§

impl ProvideErrorMetadata for GetAnomalySubscriptionsError

Source§

impl ProvideErrorMetadata for GetApproximateUsageRecordsError

Source§

impl ProvideErrorMetadata for GetCommitmentPurchaseAnalysisError

Source§

impl ProvideErrorMetadata for GetCostAndUsageError

Source§

impl ProvideErrorMetadata for GetCostAndUsageWithResourcesError

Source§

impl ProvideErrorMetadata for GetCostCategoriesError

Source§

impl ProvideErrorMetadata for GetCostForecastError

Source§

impl ProvideErrorMetadata for GetDimensionValuesError

Source§

impl ProvideErrorMetadata for GetReservationCoverageError

Source§

impl ProvideErrorMetadata for GetReservationPurchaseRecommendationError

Source§

impl ProvideErrorMetadata for GetReservationUtilizationError

Source§

impl ProvideErrorMetadata for GetRightsizingRecommendationError

Source§

impl ProvideErrorMetadata for GetSavingsPlanPurchaseRecommendationDetailsError

Source§

impl ProvideErrorMetadata for GetSavingsPlansCoverageError

Source§

impl ProvideErrorMetadata for GetSavingsPlansPurchaseRecommendationError

Source§

impl ProvideErrorMetadata for GetSavingsPlansUtilizationError

Source§

impl ProvideErrorMetadata for GetSavingsPlansUtilizationDetailsError

Source§

impl ProvideErrorMetadata for GetTagsError

Source§

impl ProvideErrorMetadata for GetUsageForecastError

Source§

impl ProvideErrorMetadata for ListCommitmentPurchaseAnalysesError

Source§

impl ProvideErrorMetadata for ListCostAllocationTagBackfillHistoryError

Source§

impl ProvideErrorMetadata for ListCostAllocationTagsError

Source§

impl ProvideErrorMetadata for ListCostCategoryDefinitionsError

Source§

impl ProvideErrorMetadata for ListSavingsPlansPurchaseRecommendationGenerationError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for ProvideAnomalyFeedbackError

Source§

impl ProvideErrorMetadata for StartCommitmentPurchaseAnalysisError

Source§

impl ProvideErrorMetadata for StartCostAllocationTagBackfillError

Source§

impl ProvideErrorMetadata for StartSavingsPlansPurchaseRecommendationGenerationError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateAnomalyMonitorError

Source§

impl ProvideErrorMetadata for UpdateAnomalySubscriptionError

Source§

impl ProvideErrorMetadata for UpdateCostAllocationTagsStatusError

Source§

impl ProvideErrorMetadata for UpdateCostCategoryDefinitionError

Source§

impl ProvideErrorMetadata for AnalysisNotFoundException

Source§

impl ProvideErrorMetadata for BackfillLimitExceededException

Source§

impl ProvideErrorMetadata for BillExpirationException

Source§

impl ProvideErrorMetadata for DataUnavailableException

Source§

impl ProvideErrorMetadata for GenerationExistsException

Source§

impl ProvideErrorMetadata for InvalidNextTokenException

Source§

impl ProvideErrorMetadata for LimitExceededException

Source§

impl ProvideErrorMetadata for RequestChangedException

Source§

impl ProvideErrorMetadata for ResourceNotFoundException

Source§

impl ProvideErrorMetadata for ServiceQuotaExceededException

Source§

impl ProvideErrorMetadata for TooManyTagsException

Source§

impl ProvideErrorMetadata for UnknownMonitorException

Source§

impl ProvideErrorMetadata for UnknownSubscriptionException

Source§

impl ProvideErrorMetadata for UnresolvableUsageUnitException

Source§

impl ProvideErrorMetadata for ErrorMetadata