Crate error_mapper

source ·

Macros

  • Macro that receives the error to map, and uses the From trait to convert it into a standard TheError struct.

Structs

  • Struct that contains the error itself mapped within a TheErrorType struct, with its error content configured in the origin crate, the file, location, datestamp and timestamp data of when the error was remapped using the map_to_new_error! macro.
  • Smaller error struct to contain the mapped error type as a SystemErrorCodes enum and the error content from the origin error

Enums

  • Main enum that contains all the possible error types that can be mapped from the supported crate’s origin errors

Type Aliases

  • Alias to a Result<T, TheError> type, with TheError being a struct that contains extra details of the original error