pub fn map_error_to_problem(
error: &dyn Any,
instance: &str,
trace_id: Option<String>,
) -> ProblemExpand 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.