aws_smithy_runtime_api::client::result

Trait CreateUnhandledError

Source
pub trait CreateUnhandledError {
    // Required method
    fn create_unhandled_error(
        source: Box<dyn Error + Send + Sync + 'static>,
        meta: Option<ErrorMetadata>,
    ) -> Self;
}
Available on crate feature client only.
Expand description

Constructs the unhandled variant of a code generated error.

This trait exists so that SdkError::into_service_error can be infallible.

Required Methods§

Source

fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata>, ) -> Self

Creates an unhandled error variant with the given source and error metadata.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§