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 CreateAccountAssociationError

Source§

impl ProvideErrorMetadata for CreateCloudConnectorError

Source§

impl ProvideErrorMetadata for CreateConnectorDestinationError

Source§

impl ProvideErrorMetadata for CreateCredentialLockerError

Source§

impl ProvideErrorMetadata for CreateDestinationError

Source§

impl ProvideErrorMetadata for CreateEventLogConfigurationError

Source§

impl ProvideErrorMetadata for CreateManagedThingError

Source§

impl ProvideErrorMetadata for CreateNotificationConfigurationError

Source§

impl ProvideErrorMetadata for CreateOtaTaskError

Source§

impl ProvideErrorMetadata for CreateOtaTaskConfigurationError

Source§

impl ProvideErrorMetadata for CreateProvisioningProfileError

Source§

impl ProvideErrorMetadata for DeleteAccountAssociationError

Source§

impl ProvideErrorMetadata for DeleteCloudConnectorError

Source§

impl ProvideErrorMetadata for DeleteConnectorDestinationError

Source§

impl ProvideErrorMetadata for DeleteCredentialLockerError

Source§

impl ProvideErrorMetadata for DeleteDestinationError

Source§

impl ProvideErrorMetadata for DeleteEventLogConfigurationError

Source§

impl ProvideErrorMetadata for DeleteManagedThingError

Source§

impl ProvideErrorMetadata for DeleteNotificationConfigurationError

Source§

impl ProvideErrorMetadata for DeleteOtaTaskError

Source§

impl ProvideErrorMetadata for DeleteOtaTaskConfigurationError

Source§

impl ProvideErrorMetadata for DeleteProvisioningProfileError

Source§

impl ProvideErrorMetadata for DeregisterAccountAssociationError

Source§

impl ProvideErrorMetadata for GetAccountAssociationError

Source§

impl ProvideErrorMetadata for GetCloudConnectorError

Source§

impl ProvideErrorMetadata for GetConnectorDestinationError

Source§

impl ProvideErrorMetadata for GetCredentialLockerError

Source§

impl ProvideErrorMetadata for GetCustomEndpointError

Source§

impl ProvideErrorMetadata for GetDefaultEncryptionConfigurationError

Source§

impl ProvideErrorMetadata for GetDestinationError

Source§

impl ProvideErrorMetadata for GetDeviceDiscoveryError

Source§

impl ProvideErrorMetadata for GetEventLogConfigurationError

Source§

impl ProvideErrorMetadata for GetHubConfigurationError

Source§

impl ProvideErrorMetadata for GetManagedThingError

Source§

impl ProvideErrorMetadata for GetManagedThingCapabilitiesError

Source§

impl ProvideErrorMetadata for GetManagedThingConnectivityDataError

Source§

impl ProvideErrorMetadata for GetManagedThingMetaDataError

Source§

impl ProvideErrorMetadata for GetManagedThingStateError

Source§

impl ProvideErrorMetadata for GetNotificationConfigurationError

Source§

impl ProvideErrorMetadata for GetOtaTaskError

Source§

impl ProvideErrorMetadata for GetOtaTaskConfigurationError

Source§

impl ProvideErrorMetadata for GetProvisioningProfileError

Source§

impl ProvideErrorMetadata for GetRuntimeLogConfigurationError

Source§

impl ProvideErrorMetadata for GetSchemaVersionError

Source§

impl ProvideErrorMetadata for ListAccountAssociationsError

Source§

impl ProvideErrorMetadata for ListCloudConnectorsError

Source§

impl ProvideErrorMetadata for ListConnectorDestinationsError

Source§

impl ProvideErrorMetadata for ListCredentialLockersError

Source§

impl ProvideErrorMetadata for ListDestinationsError

Source§

impl ProvideErrorMetadata for ListDeviceDiscoveriesError

Source§

impl ProvideErrorMetadata for ListDiscoveredDevicesError

Source§

impl ProvideErrorMetadata for ListEventLogConfigurationsError

Source§

impl ProvideErrorMetadata for ListManagedThingAccountAssociationsError

Source§

impl ProvideErrorMetadata for ListManagedThingSchemasError

Source§

impl ProvideErrorMetadata for ListManagedThingsError

Source§

impl ProvideErrorMetadata for ListNotificationConfigurationsError

Source§

impl ProvideErrorMetadata for ListOtaTaskConfigurationsError

Source§

impl ProvideErrorMetadata for ListOtaTaskExecutionsError

Source§

impl ProvideErrorMetadata for ListOtaTasksError

Source§

impl ProvideErrorMetadata for ListProvisioningProfilesError

Source§

impl ProvideErrorMetadata for ListSchemaVersionsError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for PutDefaultEncryptionConfigurationError

Source§

impl ProvideErrorMetadata for PutHubConfigurationError

Source§

impl ProvideErrorMetadata for PutRuntimeLogConfigurationError

Source§

impl ProvideErrorMetadata for RegisterAccountAssociationError

Source§

impl ProvideErrorMetadata for RegisterCustomEndpointError

Source§

impl ProvideErrorMetadata for ResetRuntimeLogConfigurationError

Source§

impl ProvideErrorMetadata for SendConnectorEventError

Source§

impl ProvideErrorMetadata for SendManagedThingCommandError

Source§

impl ProvideErrorMetadata for StartAccountAssociationRefreshError

Source§

impl ProvideErrorMetadata for StartDeviceDiscoveryError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateAccountAssociationError

Source§

impl ProvideErrorMetadata for UpdateCloudConnectorError

Source§

impl ProvideErrorMetadata for UpdateConnectorDestinationError

Source§

impl ProvideErrorMetadata for UpdateDestinationError

Source§

impl ProvideErrorMetadata for UpdateEventLogConfigurationError

Source§

impl ProvideErrorMetadata for UpdateManagedThingError

Source§

impl ProvideErrorMetadata for UpdateNotificationConfigurationError

Source§

impl ProvideErrorMetadata for UpdateOtaTaskError

Source§

impl ProvideErrorMetadata for AccessDeniedException

Source§

impl ProvideErrorMetadata for ConflictException

Source§

impl ProvideErrorMetadata for InternalFailureException

Source§

impl ProvideErrorMetadata for InternalServerException

Source§

impl ProvideErrorMetadata for InvalidRequestException

Source§

impl ProvideErrorMetadata for LimitExceededException

Source§

impl ProvideErrorMetadata for ResourceNotFoundException

Source§

impl ProvideErrorMetadata for ServiceQuotaExceededException

Source§

impl ProvideErrorMetadata for ServiceUnavailableException

Source§

impl ProvideErrorMetadata for ThrottlingException

Source§

impl ProvideErrorMetadata for UnauthorizedException

Source§

impl ProvideErrorMetadata for ValidationException

Source§

impl ProvideErrorMetadata for ErrorMetadata