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

#890 in Debugging

Download history 483/week @ 2024-08-26 231/week @ 2024-09-02 157/week @ 2024-09-09 565/week @ 2024-09-16 400/week @ 2024-09-23 501/week @ 2024-09-30 209/week @ 2024-10-07 266/week @ 2024-10-14 288/week @ 2024-10-21 234/week @ 2024-10-28 160/week @ 2024-11-04 146/week @ 2024-11-11 327/week @ 2024-11-18 305/week @ 2024-11-25 374/week @ 2024-12-02 365/week @ 2024-12-09

1,390 downloads per month
Used in 7 crates (3 directly)

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