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 CreateIndexError

Source§

impl ProvideErrorMetadata for CreateVectorBucketError

Source§

impl ProvideErrorMetadata for DeleteIndexError

Source§

impl ProvideErrorMetadata for DeleteVectorBucketError

Source§

impl ProvideErrorMetadata for DeleteVectorBucketPolicyError

Source§

impl ProvideErrorMetadata for DeleteVectorsError

Source§

impl ProvideErrorMetadata for GetIndexError

Source§

impl ProvideErrorMetadata for GetVectorBucketError

Source§

impl ProvideErrorMetadata for GetVectorBucketPolicyError

Source§

impl ProvideErrorMetadata for GetVectorsError

Source§

impl ProvideErrorMetadata for ListIndexesError

Source§

impl ProvideErrorMetadata for ListVectorBucketsError

Source§

impl ProvideErrorMetadata for ListVectorsError

Source§

impl ProvideErrorMetadata for PutVectorBucketPolicyError

Source§

impl ProvideErrorMetadata for PutVectorsError

Source§

impl ProvideErrorMetadata for QueryVectorsError

Source§

impl ProvideErrorMetadata for AccessDeniedException

Source§

impl ProvideErrorMetadata for ConflictException

Source§

impl ProvideErrorMetadata for InternalServerException

Source§

impl ProvideErrorMetadata for KmsDisabledException

Source§

impl ProvideErrorMetadata for KmsInvalidKeyUsageException

Source§

impl ProvideErrorMetadata for KmsInvalidStateException

Source§

impl ProvideErrorMetadata for KmsNotFoundException

Source§

impl ProvideErrorMetadata for NotFoundException

Source§

impl ProvideErrorMetadata for ServiceQuotaExceededException

Source§

impl ProvideErrorMetadata for ServiceUnavailableException

Source§

impl ProvideErrorMetadata for TooManyRequestsException

Source§

impl ProvideErrorMetadata for ValidationException

Source§

impl ProvideErrorMetadata for ErrorMetadata