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 BatchAssociateScramSecretError

Source§

impl ProvideErrorMetadata for BatchDisassociateScramSecretError

Source§

impl ProvideErrorMetadata for CreateClusterError

Source§

impl ProvideErrorMetadata for CreateClusterV2Error

Source§

impl ProvideErrorMetadata for CreateConfigurationError

Source§

impl ProvideErrorMetadata for CreateReplicatorError

Source§

impl ProvideErrorMetadata for CreateVpcConnectionError

Source§

impl ProvideErrorMetadata for DeleteClusterError

Source§

impl ProvideErrorMetadata for DeleteClusterPolicyError

Source§

impl ProvideErrorMetadata for DeleteConfigurationError

Source§

impl ProvideErrorMetadata for DeleteReplicatorError

Source§

impl ProvideErrorMetadata for DeleteVpcConnectionError

Source§

impl ProvideErrorMetadata for DescribeClusterError

Source§

impl ProvideErrorMetadata for DescribeClusterOperationError

Source§

impl ProvideErrorMetadata for DescribeClusterOperationV2Error

Source§

impl ProvideErrorMetadata for DescribeClusterV2Error

Source§

impl ProvideErrorMetadata for DescribeConfigurationError

Source§

impl ProvideErrorMetadata for DescribeConfigurationRevisionError

Source§

impl ProvideErrorMetadata for DescribeReplicatorError

Source§

impl ProvideErrorMetadata for DescribeVpcConnectionError

Source§

impl ProvideErrorMetadata for GetBootstrapBrokersError

Source§

impl ProvideErrorMetadata for GetClusterPolicyError

Source§

impl ProvideErrorMetadata for GetCompatibleKafkaVersionsError

Source§

impl ProvideErrorMetadata for ListClientVpcConnectionsError

Source§

impl ProvideErrorMetadata for ListClusterOperationsError

Source§

impl ProvideErrorMetadata for ListClusterOperationsV2Error

Source§

impl ProvideErrorMetadata for ListClustersError

Source§

impl ProvideErrorMetadata for ListClustersV2Error

Source§

impl ProvideErrorMetadata for ListConfigurationRevisionsError

Source§

impl ProvideErrorMetadata for ListConfigurationsError

Source§

impl ProvideErrorMetadata for ListKafkaVersionsError

Source§

impl ProvideErrorMetadata for ListNodesError

Source§

impl ProvideErrorMetadata for ListReplicatorsError

Source§

impl ProvideErrorMetadata for ListScramSecretsError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for ListVpcConnectionsError

Source§

impl ProvideErrorMetadata for PutClusterPolicyError

Source§

impl ProvideErrorMetadata for RebootBrokerError

Source§

impl ProvideErrorMetadata for RejectClientVpcConnectionError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateBrokerCountError

Source§

impl ProvideErrorMetadata for UpdateBrokerStorageError

Source§

impl ProvideErrorMetadata for UpdateBrokerTypeError

Source§

impl ProvideErrorMetadata for UpdateClusterConfigurationError

Source§

impl ProvideErrorMetadata for UpdateClusterKafkaVersionError

Source§

impl ProvideErrorMetadata for UpdateConfigurationError

Source§

impl ProvideErrorMetadata for UpdateConnectivityError

Source§

impl ProvideErrorMetadata for UpdateMonitoringError

Source§

impl ProvideErrorMetadata for UpdateReplicationInfoError

Source§

impl ProvideErrorMetadata for UpdateSecurityError

Source§

impl ProvideErrorMetadata for UpdateStorageError

Source§

impl ProvideErrorMetadata for BadRequestException

Source§

impl ProvideErrorMetadata for ConflictException

Source§

impl ProvideErrorMetadata for ForbiddenException

Source§

impl ProvideErrorMetadata for InternalServerErrorException

Source§

impl ProvideErrorMetadata for NotFoundException

Source§

impl ProvideErrorMetadata for ServiceUnavailableException

Source§

impl ProvideErrorMetadata for TooManyRequestsException

Source§

impl ProvideErrorMetadata for UnauthorizedException

Source§

impl ProvideErrorMetadata for ErrorMetadata