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 BatchPutPropertyValuesError

Source§

impl ProvideErrorMetadata for CancelMetadataTransferJobError

Source§

impl ProvideErrorMetadata for CreateComponentTypeError

Source§

impl ProvideErrorMetadata for CreateEntityError

Source§

impl ProvideErrorMetadata for CreateMetadataTransferJobError

Source§

impl ProvideErrorMetadata for CreateSceneError

Source§

impl ProvideErrorMetadata for CreateSyncJobError

Source§

impl ProvideErrorMetadata for CreateWorkspaceError

Source§

impl ProvideErrorMetadata for DeleteComponentTypeError

Source§

impl ProvideErrorMetadata for DeleteEntityError

Source§

impl ProvideErrorMetadata for DeleteSceneError

Source§

impl ProvideErrorMetadata for DeleteSyncJobError

Source§

impl ProvideErrorMetadata for DeleteWorkspaceError

Source§

impl ProvideErrorMetadata for ExecuteQueryError

Source§

impl ProvideErrorMetadata for GetComponentTypeError

Source§

impl ProvideErrorMetadata for GetEntityError

Source§

impl ProvideErrorMetadata for GetMetadataTransferJobError

Source§

impl ProvideErrorMetadata for GetPricingPlanError

Source§

impl ProvideErrorMetadata for GetPropertyValueError

Source§

impl ProvideErrorMetadata for GetPropertyValueHistoryError

Source§

impl ProvideErrorMetadata for GetSceneError

Source§

impl ProvideErrorMetadata for GetSyncJobError

Source§

impl ProvideErrorMetadata for GetWorkspaceError

Source§

impl ProvideErrorMetadata for ListComponentTypesError

Source§

impl ProvideErrorMetadata for ListComponentsError

Source§

impl ProvideErrorMetadata for ListEntitiesError

Source§

impl ProvideErrorMetadata for ListMetadataTransferJobsError

Source§

impl ProvideErrorMetadata for ListPropertiesError

Source§

impl ProvideErrorMetadata for ListScenesError

Source§

impl ProvideErrorMetadata for ListSyncJobsError

Source§

impl ProvideErrorMetadata for ListSyncResourcesError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for ListWorkspacesError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateComponentTypeError

Source§

impl ProvideErrorMetadata for UpdateEntityError

Source§

impl ProvideErrorMetadata for UpdatePricingPlanError

Source§

impl ProvideErrorMetadata for UpdateSceneError

Source§

impl ProvideErrorMetadata for UpdateWorkspaceError

Source§

impl ProvideErrorMetadata for AccessDeniedException

Source§

impl ProvideErrorMetadata for ConflictException

Source§

impl ProvideErrorMetadata for ConnectorFailureException

Source§

impl ProvideErrorMetadata for ConnectorTimeoutException

Source§

impl ProvideErrorMetadata for InternalServerException

Source§

impl ProvideErrorMetadata for QueryTimeoutException

Source§

impl ProvideErrorMetadata for ResourceNotFoundException

Source§

impl ProvideErrorMetadata for ServiceQuotaExceededException

Source§

impl ProvideErrorMetadata for ThrottlingException

Source§

impl ProvideErrorMetadata for TooManyTagsException

Source§

impl ProvideErrorMetadata for ValidationException

Source§

impl ProvideErrorMetadata for ErrorMetadata