aws_sdk_controltower::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 CreateLandingZoneError

Source§

impl ProvideErrorMetadata for DeleteLandingZoneError

Source§

impl ProvideErrorMetadata for DisableBaselineError

Source§

impl ProvideErrorMetadata for DisableControlError

Source§

impl ProvideErrorMetadata for EnableBaselineError

Source§

impl ProvideErrorMetadata for EnableControlError

Source§

impl ProvideErrorMetadata for GetBaselineError

Source§

impl ProvideErrorMetadata for GetBaselineOperationError

Source§

impl ProvideErrorMetadata for GetControlOperationError

Source§

impl ProvideErrorMetadata for GetEnabledBaselineError

Source§

impl ProvideErrorMetadata for GetEnabledControlError

Source§

impl ProvideErrorMetadata for GetLandingZoneError

Source§

impl ProvideErrorMetadata for GetLandingZoneOperationError

Source§

impl ProvideErrorMetadata for ListBaselinesError

Source§

impl ProvideErrorMetadata for ListControlOperationsError

Source§

impl ProvideErrorMetadata for ListEnabledBaselinesError

Source§

impl ProvideErrorMetadata for ListEnabledControlsError

Source§

impl ProvideErrorMetadata for ListLandingZoneOperationsError

Source§

impl ProvideErrorMetadata for ListLandingZonesError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for ResetEnabledBaselineError

Source§

impl ProvideErrorMetadata for ResetEnabledControlError

Source§

impl ProvideErrorMetadata for ResetLandingZoneError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateEnabledBaselineError

Source§

impl ProvideErrorMetadata for UpdateEnabledControlError

Source§

impl ProvideErrorMetadata for UpdateLandingZoneError

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