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 CreateApplicationError

Source§

impl ProvideErrorMetadata for CreateConfigurationProfileError

Source§

impl ProvideErrorMetadata for CreateDeploymentStrategyError

Source§

impl ProvideErrorMetadata for CreateEnvironmentError

Source§

impl ProvideErrorMetadata for CreateExtensionError

Source§

impl ProvideErrorMetadata for CreateExtensionAssociationError

Source§

impl ProvideErrorMetadata for CreateHostedConfigurationVersionError

Source§

impl ProvideErrorMetadata for DeleteApplicationError

Source§

impl ProvideErrorMetadata for DeleteConfigurationProfileError

Source§

impl ProvideErrorMetadata for DeleteDeploymentStrategyError

Source§

impl ProvideErrorMetadata for DeleteEnvironmentError

Source§

impl ProvideErrorMetadata for DeleteExtensionError

Source§

impl ProvideErrorMetadata for DeleteExtensionAssociationError

Source§

impl ProvideErrorMetadata for DeleteHostedConfigurationVersionError

Source§

impl ProvideErrorMetadata for GetAccountSettingsError

Source§

impl ProvideErrorMetadata for GetApplicationError

Source§

impl ProvideErrorMetadata for GetConfigurationError

Source§

impl ProvideErrorMetadata for GetConfigurationProfileError

Source§

impl ProvideErrorMetadata for GetDeploymentError

Source§

impl ProvideErrorMetadata for GetDeploymentStrategyError

Source§

impl ProvideErrorMetadata for GetEnvironmentError

Source§

impl ProvideErrorMetadata for GetExtensionError

Source§

impl ProvideErrorMetadata for GetExtensionAssociationError

Source§

impl ProvideErrorMetadata for GetHostedConfigurationVersionError

Source§

impl ProvideErrorMetadata for ListApplicationsError

Source§

impl ProvideErrorMetadata for ListConfigurationProfilesError

Source§

impl ProvideErrorMetadata for ListDeploymentStrategiesError

Source§

impl ProvideErrorMetadata for ListDeploymentsError

Source§

impl ProvideErrorMetadata for ListEnvironmentsError

Source§

impl ProvideErrorMetadata for ListExtensionAssociationsError

Source§

impl ProvideErrorMetadata for ListExtensionsError

Source§

impl ProvideErrorMetadata for ListHostedConfigurationVersionsError

Source§

impl ProvideErrorMetadata for ListTagsForResourceError

Source§

impl ProvideErrorMetadata for StartDeploymentError

Source§

impl ProvideErrorMetadata for StopDeploymentError

Source§

impl ProvideErrorMetadata for TagResourceError

Source§

impl ProvideErrorMetadata for UntagResourceError

Source§

impl ProvideErrorMetadata for UpdateAccountSettingsError

Source§

impl ProvideErrorMetadata for UpdateApplicationError

Source§

impl ProvideErrorMetadata for UpdateConfigurationProfileError

Source§

impl ProvideErrorMetadata for UpdateDeploymentStrategyError

Source§

impl ProvideErrorMetadata for UpdateEnvironmentError

Source§

impl ProvideErrorMetadata for UpdateExtensionError

Source§

impl ProvideErrorMetadata for UpdateExtensionAssociationError

Source§

impl ProvideErrorMetadata for ValidateConfigurationError

Source§

impl ProvideErrorMetadata for BadRequestException

Source§

impl ProvideErrorMetadata for ConflictException

Source§

impl ProvideErrorMetadata for InternalServerException

Source§

impl ProvideErrorMetadata for PayloadTooLargeException

Source§

impl ProvideErrorMetadata for ResourceNotFoundException

Source§

impl ProvideErrorMetadata for ServiceQuotaExceededException

Source§

impl ProvideErrorMetadata for ErrorMetadata