ProvideErrorMetadata

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 CreateExperimentTemplateError

Source§

impl ProvideErrorMetadata for CreateTargetAccountConfigurationError

Source§

impl ProvideErrorMetadata for DeleteExperimentTemplateError

Source§

impl ProvideErrorMetadata for DeleteTargetAccountConfigurationError

Source§

impl ProvideErrorMetadata for GetActionError

Source§

impl ProvideErrorMetadata for GetExperimentError

Source§

impl ProvideErrorMetadata for GetExperimentTargetAccountConfigurationError

Source§

impl ProvideErrorMetadata for GetExperimentTemplateError

Source§

impl ProvideErrorMetadata for GetSafetyLeverError

Source§

impl ProvideErrorMetadata for GetTargetAccountConfigurationError

Source§

impl ProvideErrorMetadata for GetTargetResourceTypeError

Source§

impl ProvideErrorMetadata for ListActionsError

Source§

impl ProvideErrorMetadata for ListExperimentResolvedTargetsError

Source§

impl ProvideErrorMetadata for ListExperimentTargetAccountConfigurationsError

Source§

impl ProvideErrorMetadata for ListExperimentTemplatesError

Source§

impl ProvideErrorMetadata for ListExperimentsError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for ListTargetAccountConfigurationsError

Source§

impl ProvideErrorMetadata for ListTargetResourceTypesError

Source§

impl ProvideErrorMetadata for StartExperimentError

Source§

impl ProvideErrorMetadata for StopExperimentError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateExperimentTemplateError

Source§

impl ProvideErrorMetadata for UpdateSafetyLeverStateError

Source§

impl ProvideErrorMetadata for UpdateTargetAccountConfigurationError

Source§

impl ProvideErrorMetadata for ConflictException

Source§

impl ProvideErrorMetadata for ResourceNotFoundException

Source§

impl ProvideErrorMetadata for ServiceQuotaExceededException

Source§

impl ProvideErrorMetadata for ValidationException

Source§

impl ProvideErrorMetadata for ErrorMetadata