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 CreateMonitorError

Source§

impl ProvideErrorMetadata for CreateScopeError

Source§

impl ProvideErrorMetadata for DeleteMonitorError

Source§

impl ProvideErrorMetadata for DeleteScopeError

Source§

impl ProvideErrorMetadata for GetMonitorError

Source§

impl ProvideErrorMetadata for GetQueryResultsMonitorTopContributorsError

Source§

impl ProvideErrorMetadata for GetQueryResultsWorkloadInsightsTopContributorsError

Source§

impl ProvideErrorMetadata for GetQueryResultsWorkloadInsightsTopContributorsDataError

Source§

impl ProvideErrorMetadata for GetQueryStatusMonitorTopContributorsError

Source§

impl ProvideErrorMetadata for GetQueryStatusWorkloadInsightsTopContributorsError

Source§

impl ProvideErrorMetadata for GetQueryStatusWorkloadInsightsTopContributorsDataError

Source§

impl ProvideErrorMetadata for GetScopeError

Source§

impl ProvideErrorMetadata for ListMonitorsError

Source§

impl ProvideErrorMetadata for ListScopesError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for StartQueryMonitorTopContributorsError

Source§

impl ProvideErrorMetadata for StartQueryWorkloadInsightsTopContributorsError

Source§

impl ProvideErrorMetadata for StartQueryWorkloadInsightsTopContributorsDataError

Source§

impl ProvideErrorMetadata for StopQueryMonitorTopContributorsError

Source§

impl ProvideErrorMetadata for StopQueryWorkloadInsightsTopContributorsError

Source§

impl ProvideErrorMetadata for StopQueryWorkloadInsightsTopContributorsDataError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateMonitorError

Source§

impl ProvideErrorMetadata for UpdateScopeError

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