Trait aws_sdk_devopsguru::error::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 AddNotificationChannelError

source§

impl ProvideErrorMetadata for DeleteInsightError

source§

impl ProvideErrorMetadata for DescribeAccountHealthError

source§

impl ProvideErrorMetadata for DescribeAccountOverviewError

source§

impl ProvideErrorMetadata for DescribeAnomalyError

source§

impl ProvideErrorMetadata for DescribeEventSourcesConfigError

source§

impl ProvideErrorMetadata for DescribeFeedbackError

source§

impl ProvideErrorMetadata for DescribeInsightError

source§

impl ProvideErrorMetadata for DescribeOrganizationHealthError

source§

impl ProvideErrorMetadata for DescribeOrganizationOverviewError

source§

impl ProvideErrorMetadata for DescribeOrganizationResourceCollectionHealthError

source§

impl ProvideErrorMetadata for DescribeResourceCollectionHealthError

source§

impl ProvideErrorMetadata for DescribeServiceIntegrationError

source§

impl ProvideErrorMetadata for GetCostEstimationError

source§

impl ProvideErrorMetadata for GetResourceCollectionError

source§

impl ProvideErrorMetadata for ListAnomaliesForInsightError

source§

impl ProvideErrorMetadata for ListAnomalousLogGroupsError

source§

impl ProvideErrorMetadata for ListEventsError

source§

impl ProvideErrorMetadata for ListInsightsError

source§

impl ProvideErrorMetadata for ListMonitoredResourcesError

source§

impl ProvideErrorMetadata for ListNotificationChannelsError

source§

impl ProvideErrorMetadata for ListOrganizationInsightsError

source§

impl ProvideErrorMetadata for ListRecommendationsError

source§

impl ProvideErrorMetadata for PutFeedbackError

source§

impl ProvideErrorMetadata for RemoveNotificationChannelError

source§

impl ProvideErrorMetadata for SearchInsightsError

source§

impl ProvideErrorMetadata for SearchOrganizationInsightsError

source§

impl ProvideErrorMetadata for StartCostEstimationError

source§

impl ProvideErrorMetadata for UpdateEventSourcesConfigError

source§

impl ProvideErrorMetadata for UpdateResourceCollectionError

source§

impl ProvideErrorMetadata for UpdateServiceIntegrationError

source§

impl ProvideErrorMetadata for AccessDeniedException

source§

impl ProvideErrorMetadata for ConflictException

source§

impl ProvideErrorMetadata for InternalServerException

source§

impl ProvideErrorMetadata for ResourceNotFoundException

source§

impl ProvideErrorMetadata for ServiceQuotaExceededException

source§

impl ProvideErrorMetadata for ThrottlingException

source§

impl ProvideErrorMetadata for ValidationException

source§

impl ProvideErrorMetadata for ErrorMetadata