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>

Implementors§

source§

impl ProvideErrorMetadata for CreateGameError

source§

impl ProvideErrorMetadata for CreateSnapshotError

source§

impl ProvideErrorMetadata for CreateStageError

source§

impl ProvideErrorMetadata for DeleteGameError

source§

impl ProvideErrorMetadata for DeleteStageError

source§

impl ProvideErrorMetadata for DisconnectPlayerError

source§

impl ProvideErrorMetadata for ExportSnapshotError

source§

impl ProvideErrorMetadata for GetExtensionError

source§

impl ProvideErrorMetadata for GetExtensionVersionError

source§

impl ProvideErrorMetadata for GetGameError

source§

impl ProvideErrorMetadata for GetGameConfigurationError

source§

impl ProvideErrorMetadata for GetGeneratedCodeJobError

source§

impl ProvideErrorMetadata for GetPlayerConnectionStatusError

source§

impl ProvideErrorMetadata for GetSnapshotError

source§

impl ProvideErrorMetadata for GetStageError

source§

impl ProvideErrorMetadata for GetStageDeploymentError

source§

impl ProvideErrorMetadata for ImportGameConfigurationError

source§

impl ProvideErrorMetadata for ListExtensionVersionsError

source§

impl ProvideErrorMetadata for ListExtensionsError

source§

impl ProvideErrorMetadata for ListGamesError

source§

impl ProvideErrorMetadata for ListGeneratedCodeJobsError

source§

impl ProvideErrorMetadata for ListSnapshotsError

source§

impl ProvideErrorMetadata for ListStageDeploymentsError

source§

impl ProvideErrorMetadata for ListStagesError

source§

impl ProvideErrorMetadata for ListTagsForResourceError

source§

impl ProvideErrorMetadata for StartGeneratedCodeJobError

source§

impl ProvideErrorMetadata for StartStageDeploymentError

source§

impl ProvideErrorMetadata for TagResourceError

source§

impl ProvideErrorMetadata for UntagResourceError

source§

impl ProvideErrorMetadata for UpdateGameError

source§

impl ProvideErrorMetadata for UpdateGameConfigurationError

source§

impl ProvideErrorMetadata for UpdateSnapshotError

source§

impl ProvideErrorMetadata for UpdateStageError

source§

impl ProvideErrorMetadata for AccessDeniedException

source§

impl ProvideErrorMetadata for ConflictException

source§

impl ProvideErrorMetadata for InternalServerException

source§

impl ProvideErrorMetadata for ResourceNotFoundException

source§

impl ProvideErrorMetadata for ServiceQuotaExceededException

source§

impl ProvideErrorMetadata for ThrottlingException

source§

impl ProvideErrorMetadata for ValidationException

source§

impl ProvideErrorMetadata for ErrorMetadata

source§

impl ProvideErrorMetadata for Unhandled