macro_rules! map_to_new_error {
($error:expr) => { ... };
}Expand description
Macro that receives the error to map, and uses the From trait to convert it into a standard TheError struct.
The original error message sent from the origin crate is mapped into the self.error.error_content member.