Skip to main content

ErrorClassMapper

Trait ErrorClassMapper 

Source
pub trait ErrorClassMapper {
    type Decision;

    // Required method
    fn map(&self, context: ErrorMappingContext) -> Self::Decision;
}
Expand description

Contract for adapter-facing error mapping.

Mapper implementations live at the edges and return transport-native decision types.

Required Associated Types§

Source

type Decision

Adapter-specific decision type (e.g., HTTP status + body policy).

Required Methods§

Source

fn map(&self, context: ErrorMappingContext) -> Self::Decision

Maps a transport-agnostic context into an adapter decision.

Implementors§