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 AddTagsError

Source§

impl ProvideErrorMetadata for ApplySecurityGroupsToLoadBalancerError

Source§

impl ProvideErrorMetadata for AttachLoadBalancerToSubnetsError

Source§

impl ProvideErrorMetadata for ConfigureHealthCheckError

Source§

impl ProvideErrorMetadata for CreateAppCookieStickinessPolicyError

Source§

impl ProvideErrorMetadata for CreateLBCookieStickinessPolicyError

Source§

impl ProvideErrorMetadata for CreateLoadBalancerError

Source§

impl ProvideErrorMetadata for CreateLoadBalancerListenersError

Source§

impl ProvideErrorMetadata for CreateLoadBalancerPolicyError

Source§

impl ProvideErrorMetadata for DeleteLoadBalancerError

Source§

impl ProvideErrorMetadata for DeleteLoadBalancerListenersError

Source§

impl ProvideErrorMetadata for DeleteLoadBalancerPolicyError

Source§

impl ProvideErrorMetadata for DeregisterInstancesFromLoadBalancerError

Source§

impl ProvideErrorMetadata for DescribeAccountLimitsError

Source§

impl ProvideErrorMetadata for DescribeInstanceHealthError

Source§

impl ProvideErrorMetadata for DescribeLoadBalancerAttributesError

Source§

impl ProvideErrorMetadata for DescribeLoadBalancerPoliciesError

Source§

impl ProvideErrorMetadata for DescribeLoadBalancerPolicyTypesError

Source§

impl ProvideErrorMetadata for DescribeLoadBalancersError

Source§

impl ProvideErrorMetadata for DescribeTagsError

Source§

impl ProvideErrorMetadata for DetachLoadBalancerFromSubnetsError

Source§

impl ProvideErrorMetadata for DisableAvailabilityZonesForLoadBalancerError

Source§

impl ProvideErrorMetadata for EnableAvailabilityZonesForLoadBalancerError

Source§

impl ProvideErrorMetadata for ModifyLoadBalancerAttributesError

Source§

impl ProvideErrorMetadata for RegisterInstancesWithLoadBalancerError

Source§

impl ProvideErrorMetadata for RemoveTagsError

Source§

impl ProvideErrorMetadata for SetLoadBalancerListenerSSLCertificateError

Source§

impl ProvideErrorMetadata for SetLoadBalancerPoliciesForBackendServerError

Source§

impl ProvideErrorMetadata for SetLoadBalancerPoliciesOfListenerError

Source§

impl ProvideErrorMetadata for AccessPointNotFoundException

Source§

impl ProvideErrorMetadata for CertificateNotFoundException

Source§

impl ProvideErrorMetadata for DependencyThrottleException

Source§

impl ProvideErrorMetadata for DuplicateAccessPointNameException

Source§

impl ProvideErrorMetadata for DuplicateListenerException

Source§

impl ProvideErrorMetadata for DuplicatePolicyNameException

Source§

impl ProvideErrorMetadata for DuplicateTagKeysException

Source§

impl ProvideErrorMetadata for InvalidConfigurationRequestException

Source§

impl ProvideErrorMetadata for InvalidEndPointException

Source§

impl ProvideErrorMetadata for InvalidSchemeException

Source§

impl ProvideErrorMetadata for InvalidSecurityGroupException

Source§

impl ProvideErrorMetadata for InvalidSubnetException

Source§

impl ProvideErrorMetadata for ListenerNotFoundException

Source§

impl ProvideErrorMetadata for LoadBalancerAttributeNotFoundException

Source§

impl ProvideErrorMetadata for OperationNotPermittedException

Source§

impl ProvideErrorMetadata for PolicyNotFoundException

Source§

impl ProvideErrorMetadata for PolicyTypeNotFoundException

Source§

impl ProvideErrorMetadata for SubnetNotFoundException

Source§

impl ProvideErrorMetadata for TooManyAccessPointsException

Source§

impl ProvideErrorMetadata for TooManyPoliciesException

Source§

impl ProvideErrorMetadata for TooManyTagsException

Source§

impl ProvideErrorMetadata for UnsupportedProtocolException

Source§

impl ProvideErrorMetadata for ErrorMetadata