aws_sdk_wisdom::error

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 CreateAssistantError

Source§

impl ProvideErrorMetadata for CreateAssistantAssociationError

Source§

impl ProvideErrorMetadata for CreateContentError

Source§

impl ProvideErrorMetadata for CreateKnowledgeBaseError

Source§

impl ProvideErrorMetadata for CreateQuickResponseError

Source§

impl ProvideErrorMetadata for CreateSessionError

Source§

impl ProvideErrorMetadata for DeleteAssistantError

Source§

impl ProvideErrorMetadata for DeleteAssistantAssociationError

Source§

impl ProvideErrorMetadata for DeleteContentError

Source§

impl ProvideErrorMetadata for DeleteImportJobError

Source§

impl ProvideErrorMetadata for DeleteKnowledgeBaseError

Source§

impl ProvideErrorMetadata for DeleteQuickResponseError

Source§

impl ProvideErrorMetadata for GetAssistantError

Source§

impl ProvideErrorMetadata for GetAssistantAssociationError

Source§

impl ProvideErrorMetadata for GetContentError

Source§

impl ProvideErrorMetadata for GetContentSummaryError

Source§

impl ProvideErrorMetadata for GetImportJobError

Source§

impl ProvideErrorMetadata for GetKnowledgeBaseError

Source§

impl ProvideErrorMetadata for GetQuickResponseError

Source§

impl ProvideErrorMetadata for GetRecommendationsError

Source§

impl ProvideErrorMetadata for GetSessionError

Source§

impl ProvideErrorMetadata for ListAssistantAssociationsError

Source§

impl ProvideErrorMetadata for ListAssistantsError

Source§

impl ProvideErrorMetadata for ListContentsError

Source§

impl ProvideErrorMetadata for ListImportJobsError

Source§

impl ProvideErrorMetadata for ListKnowledgeBasesError

Source§

impl ProvideErrorMetadata for ListQuickResponsesError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for NotifyRecommendationsReceivedError

Source§

impl ProvideErrorMetadata for QueryAssistantError

Source§

impl ProvideErrorMetadata for RemoveKnowledgeBaseTemplateUriError

Source§

impl ProvideErrorMetadata for SearchContentError

Source§

impl ProvideErrorMetadata for SearchQuickResponsesError

Source§

impl ProvideErrorMetadata for SearchSessionsError

Source§

impl ProvideErrorMetadata for StartContentUploadError

Source§

impl ProvideErrorMetadata for StartImportJobError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateContentError

Source§

impl ProvideErrorMetadata for UpdateKnowledgeBaseTemplateUriError

Source§

impl ProvideErrorMetadata for UpdateQuickResponseError

Source§

impl ProvideErrorMetadata for AccessDeniedException

Source§

impl ProvideErrorMetadata for ConflictException

Source§

impl ProvideErrorMetadata for PreconditionFailedException

Source§

impl ProvideErrorMetadata for RequestTimeoutException

Source§

impl ProvideErrorMetadata for ResourceNotFoundException

Source§

impl ProvideErrorMetadata for ServiceQuotaExceededException

Source§

impl ProvideErrorMetadata for TooManyTagsException

Source§

impl ProvideErrorMetadata for ValidationException

Source§

impl ProvideErrorMetadata for ErrorMetadata