Docs.rs
error_mapper-0.4.0
error_mapper 0.4.0
Permalink
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
tommyHellraiser
Dependencies
actix-web ^4.4.0
normal
optional
chrono ^0.4.26
normal
lazy_static ^1.4.0
normal
mysql_async ^0.32.2
normal
optional
reqwest ^0.11.20
normal
optional
serde ^1.0.188
normal
optional
serde_json ^1.0.107
normal
optional
tokio ^1.29.1
normal
optional
Versions
5%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
error_
mapper
0.4.0
All Items
Crate Items
Macros
Structs
Enums
Type Aliases
Crate
error_mapper
Copy item path
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.
TheError
Type
Smaller error struct to contain the
mapped error type
as a
SystemErrorCodes
enum and the
error content
from the origin error
Enums
§
System
Error
Codes
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