Skip to main content

map_error_to_problem

Function map_error_to_problem 

Source
pub fn map_error_to_problem(
    error: &dyn Any,
    instance: &str,
    trace_id: Option<String>,
) -> Problem
Expand description

Centralized error mapping function

This function provides a single place to convert all framework and module errors into consistent Problem responses with proper trace IDs and instance paths.