Crate error_mapper

Source

Macros§

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

Structs§

TheError
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.
TheErrorType
Smaller error struct to contain the mapped error type as a SystemErrorCodes enum and the error content from the origin error

Enums§

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

Type Aliases§

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