simplified rust error handling
Find a file
2018-12-20 16:51:13 +01:00
booksrc Header change 2018-12-20 16:37:08 +01:00
examples more doc 2018-12-20 16:32:00 +01:00
src add mdbook 2018-12-20 14:52:06 +01:00
theme add mdbook 2018-12-20 14:52:06 +01:00
.gitignore .gitignore: update 2018-12-20 16:45:51 +01:00
book.toml update README.md 2018-12-20 15:01:52 +01:00
Cargo.toml Cargo update 2018-12-20 16:51:13 +01:00
LICENSE Create LICENSE 2018-12-20 16:46:45 +01:00
README.md Cargo update 2018-12-20 16:51:13 +01:00

chainerror

chainerror provides an error backtrace like failure without doing a real backtrace, so even after you strip your binaries, you still have the error backtrace.

chainerror has no depenendencies!

chainerror uses .source() of std::error::Error along with line()! and file()! to provide a nice debug error backtrace. It encapsulates all types, which have Display + Debug and can store the error cause internally.

Along with the ChainError<T> struct, chainerror comes with some useful helper macros to save a lot of typing.

Debug information is worth it!

For an introduction read the Tutorial