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 CreateConnectionError

Source§

impl ProvideErrorMetadata for CreateHostError

Source§

impl ProvideErrorMetadata for CreateRepositoryLinkError

Source§

impl ProvideErrorMetadata for CreateSyncConfigurationError

Source§

impl ProvideErrorMetadata for DeleteConnectionError

Source§

impl ProvideErrorMetadata for DeleteHostError

Source§

impl ProvideErrorMetadata for DeleteRepositoryLinkError

Source§

impl ProvideErrorMetadata for DeleteSyncConfigurationError

Source§

impl ProvideErrorMetadata for GetConnectionError

Source§

impl ProvideErrorMetadata for GetHostError

Source§

impl ProvideErrorMetadata for GetRepositoryLinkError

Source§

impl ProvideErrorMetadata for GetRepositorySyncStatusError

Source§

impl ProvideErrorMetadata for GetResourceSyncStatusError

Source§

impl ProvideErrorMetadata for GetSyncBlockerSummaryError

Source§

impl ProvideErrorMetadata for GetSyncConfigurationError

Source§

impl ProvideErrorMetadata for ListConnectionsError

Source§

impl ProvideErrorMetadata for ListHostsError

Source§

impl ProvideErrorMetadata for ListRepositoryLinksError

Source§

impl ProvideErrorMetadata for ListRepositorySyncDefinitionsError

Source§

impl ProvideErrorMetadata for ListSyncConfigurationsError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateHostError

Source§

impl ProvideErrorMetadata for UpdateRepositoryLinkError

Source§

impl ProvideErrorMetadata for UpdateSyncBlockerError

Source§

impl ProvideErrorMetadata for UpdateSyncConfigurationError

Source§

impl ProvideErrorMetadata for AccessDeniedException

Source§

impl ProvideErrorMetadata for ConcurrentModificationException

Source§

impl ProvideErrorMetadata for ConditionalCheckFailedException

Source§

impl ProvideErrorMetadata for ConflictException

Source§

impl ProvideErrorMetadata for InternalServerException

Source§

impl ProvideErrorMetadata for InvalidInputException

Source§

impl ProvideErrorMetadata for LimitExceededException

Source§

impl ProvideErrorMetadata for ResourceAlreadyExistsException

Source§

impl ProvideErrorMetadata for ResourceNotFoundException

Source§

impl ProvideErrorMetadata for ResourceUnavailableException

Source§

impl ProvideErrorMetadata for RetryLatestCommitFailedException

Source§

impl ProvideErrorMetadata for SyncBlockerDoesNotExistException

Source§

impl ProvideErrorMetadata for SyncConfigurationStillExistsException

Source§

impl ProvideErrorMetadata for ThrottlingException

Source§

impl ProvideErrorMetadata for UnsupportedOperationException

Source§

impl ProvideErrorMetadata for UnsupportedProviderTypeException

Source§

impl ProvideErrorMetadata for UpdateOutOfSyncException

Source§

impl ProvideErrorMetadata for ErrorMetadata