1 unstable release
new 0.1.0 | Mar 17, 2025 |
---|
#1897 in Rust patterns
50KB
805 lines
bherror
This library provides an error handling mechanism in Rust for use across all of The Blockhouse Technology Limited (TBTL) code.
NOTE: If you are working outside of TBTL, you probably don't want to use this. Take a look at anyhow or thiserror instead.
Details
The library provides a couple of error types.
Error
which carries the type information of the concrete error.ErrorDyn
which type-erases the concrete error, similar toanyhow::Error
.
All of the above are backed by a BhError
trait which must be implemented by
your own error types.
Anytime you construct a bherror
error, it will be logged as a warning using
the log crate.
For additional documentation & examples, take a look at the crate documentation.
Changelog
The changelog can be found here.
License
Licensed under GNU Affero General Public License, Version 3.Dependencies
~0.5–6.5MB
~46K SLoC