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 DescribeEntitiesDetectionV2JobError

Source§

impl ProvideErrorMetadata for DescribeICD10CMInferenceJobError

Source§

impl ProvideErrorMetadata for DescribePHIDetectionJobError

Source§

impl ProvideErrorMetadata for DescribeRxNormInferenceJobError

Source§

impl ProvideErrorMetadata for DescribeSNOMEDCTInferenceJobError

Source§

impl ProvideErrorMetadata for DetectEntitiesError

Source§

impl ProvideErrorMetadata for DetectEntitiesV2Error

Source§

impl ProvideErrorMetadata for DetectPHIError

Source§

impl ProvideErrorMetadata for InferICD10CMError

Source§

impl ProvideErrorMetadata for InferRxNormError

Source§

impl ProvideErrorMetadata for InferSNOMEDCTError

Source§

impl ProvideErrorMetadata for ListEntitiesDetectionV2JobsError

Source§

impl ProvideErrorMetadata for ListICD10CMInferenceJobsError

Source§

impl ProvideErrorMetadata for ListPHIDetectionJobsError

Source§

impl ProvideErrorMetadata for ListRxNormInferenceJobsError

Source§

impl ProvideErrorMetadata for ListSNOMEDCTInferenceJobsError

Source§

impl ProvideErrorMetadata for StartEntitiesDetectionV2JobError

Source§

impl ProvideErrorMetadata for StartICD10CMInferenceJobError

Source§

impl ProvideErrorMetadata for StartPHIDetectionJobError

Source§

impl ProvideErrorMetadata for StartRxNormInferenceJobError

Source§

impl ProvideErrorMetadata for StartSNOMEDCTInferenceJobError

Source§

impl ProvideErrorMetadata for StopEntitiesDetectionV2JobError

Source§

impl ProvideErrorMetadata for StopICD10CMInferenceJobError

Source§

impl ProvideErrorMetadata for StopPHIDetectionJobError

Source§

impl ProvideErrorMetadata for StopRxNormInferenceJobError

Source§

impl ProvideErrorMetadata for StopSNOMEDCTInferenceJobError

Source§

impl ProvideErrorMetadata for InternalServerException

Source§

impl ProvideErrorMetadata for InvalidEncodingException

Source§

impl ProvideErrorMetadata for InvalidRequestException

Source§

impl ProvideErrorMetadata for ResourceNotFoundException

Source§

impl ProvideErrorMetadata for ServiceUnavailableException

Source§

impl ProvideErrorMetadata for TextSizeLimitExceededException

Source§

impl ProvideErrorMetadata for TooManyRequestsException

Source§

impl ProvideErrorMetadata for ValidationException

Source§

impl ProvideErrorMetadata for ErrorMetadata