IntoFluxionError

Trait IntoFluxionError 

Source
pub trait IntoFluxionError {
    // Required method
    fn into_fluxion_error(self, context: &str) -> FluxionError;

    // Provided method
    fn into_fluxion(self) -> FluxionError
       where Self: Sized { ... }
}
Expand description

Extension trait for converting errors into FluxionError

This trait is automatically implemented for all types that implement std::error::Error + Send + Sync + 'static, allowing easy conversion to FluxionError.

Required Methods§

Source

fn into_fluxion_error(self, context: &str) -> FluxionError

Convert this error into a FluxionError with additional context

Provided Methods§

Source

fn into_fluxion(self) -> FluxionError
where Self: Sized,

Convert this error into a FluxionError without additional context

Implementors§

Source§

impl<E: Error + Send + Sync + 'static> IntoFluxionError for E