1 unstable release

0.1.3 Apr 21, 2019
0.1.2 Jan 12, 2019
0.1.1 May 16, 2018
0.1.0 Apr 20, 2018

#710 in Debugging

Download history 185/week @ 2023-11-19 206/week @ 2023-11-26 309/week @ 2023-12-03 501/week @ 2023-12-10 314/week @ 2023-12-17 131/week @ 2023-12-24 388/week @ 2023-12-31 523/week @ 2024-01-07 523/week @ 2024-01-14 683/week @ 2024-01-21 623/week @ 2024-01-28 627/week @ 2024-02-04 419/week @ 2024-02-11 509/week @ 2024-02-18 570/week @ 2024-02-25 343/week @ 2024-03-03

1,864 downloads per month
Used in 2 crates

BSD-3-Clause

22KB
590 lines

Crate Documentation Linux/OS X Windows
Crate Documentation Build Status Build Status

A libstd wrapper with more detailed errors. This crate mirrors the std module tree, replacing failable functions and structs with wrappers that add additional information to the errors returned. WIP, so not all of libstd may be covered.

To use ex, simply replace a use std::x with use ex::x for any x. Some structs are different from libstd's, so there might exist some friction with external crates. In that case, see the Wrapper trait on how to get the wrapped structs.

ex also uses custom error types to transport the augmented error messages. In all cases, you can use err.cause() to get a reference to the original error, or the Wrapper trait.

Dependencies

~47KB