Skip to main content

HttpErrorMapper

Trait HttpErrorMapper 

Source
pub trait HttpErrorMapper: Send + Sync {
    // Required method
    fn map_error(&self, error: &SoapError) -> HttpErrorResponse;
}
Expand description

Maps application errors into safe HTTP responses.

Required Methods§

Source

fn map_error(&self, error: &SoapError) -> HttpErrorResponse

Maps one error without exposing its technical source chain.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§