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 CreateEnvironmentError

Source§

impl ProvideErrorMetadata for CreateKxChangesetError

Source§

impl ProvideErrorMetadata for CreateKxClusterError

Source§

impl ProvideErrorMetadata for CreateKxDatabaseError

Source§

impl ProvideErrorMetadata for CreateKxDataviewError

Source§

impl ProvideErrorMetadata for CreateKxEnvironmentError

Source§

impl ProvideErrorMetadata for CreateKxScalingGroupError

Source§

impl ProvideErrorMetadata for CreateKxUserError

Source§

impl ProvideErrorMetadata for CreateKxVolumeError

Source§

impl ProvideErrorMetadata for DeleteEnvironmentError

Source§

impl ProvideErrorMetadata for DeleteKxClusterError

Source§

impl ProvideErrorMetadata for DeleteKxClusterNodeError

Source§

impl ProvideErrorMetadata for DeleteKxDatabaseError

Source§

impl ProvideErrorMetadata for DeleteKxDataviewError

Source§

impl ProvideErrorMetadata for DeleteKxEnvironmentError

Source§

impl ProvideErrorMetadata for DeleteKxScalingGroupError

Source§

impl ProvideErrorMetadata for DeleteKxUserError

Source§

impl ProvideErrorMetadata for DeleteKxVolumeError

Source§

impl ProvideErrorMetadata for GetEnvironmentError

Source§

impl ProvideErrorMetadata for GetKxChangesetError

Source§

impl ProvideErrorMetadata for GetKxClusterError

Source§

impl ProvideErrorMetadata for GetKxConnectionStringError

Source§

impl ProvideErrorMetadata for GetKxDatabaseError

Source§

impl ProvideErrorMetadata for GetKxDataviewError

Source§

impl ProvideErrorMetadata for GetKxEnvironmentError

Source§

impl ProvideErrorMetadata for GetKxScalingGroupError

Source§

impl ProvideErrorMetadata for GetKxUserError

Source§

impl ProvideErrorMetadata for GetKxVolumeError

Source§

impl ProvideErrorMetadata for ListEnvironmentsError

Source§

impl ProvideErrorMetadata for ListKxChangesetsError

Source§

impl ProvideErrorMetadata for ListKxClusterNodesError

Source§

impl ProvideErrorMetadata for ListKxClustersError

Source§

impl ProvideErrorMetadata for ListKxDatabasesError

Source§

impl ProvideErrorMetadata for ListKxDataviewsError

Source§

impl ProvideErrorMetadata for ListKxEnvironmentsError

Source§

impl ProvideErrorMetadata for ListKxScalingGroupsError

Source§

impl ProvideErrorMetadata for ListKxUsersError

Source§

impl ProvideErrorMetadata for ListKxVolumesError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateEnvironmentError

Source§

impl ProvideErrorMetadata for UpdateKxClusterCodeConfigurationError

Source§

impl ProvideErrorMetadata for UpdateKxClusterDatabasesError

Source§

impl ProvideErrorMetadata for UpdateKxDatabaseError

Source§

impl ProvideErrorMetadata for UpdateKxDataviewError

Source§

impl ProvideErrorMetadata for UpdateKxEnvironmentError

Source§

impl ProvideErrorMetadata for UpdateKxEnvironmentNetworkError

Source§

impl ProvideErrorMetadata for UpdateKxUserError

Source§

impl ProvideErrorMetadata for UpdateKxVolumeError

Source§

impl ProvideErrorMetadata for AccessDeniedException

Source§

impl ProvideErrorMetadata for ConflictException

Source§

impl ProvideErrorMetadata for InternalServerException

Source§

impl ProvideErrorMetadata for InvalidRequestException

Source§

impl ProvideErrorMetadata for LimitExceededException

Source§

impl ProvideErrorMetadata for ResourceAlreadyExistsException

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