ebacktrace
Welcome to ebacktrace 🎉
This crate implements a simple error wrapper which captures a backtrace upon creation and can carry an optional textual description of the error.
Example
use define_error;
/// The error kind
// Define our custom error type
define_error!;
/// A function that will always fail
// Will panic with a nice fully-backtraced error
will_fail.unwrap;
Features
This crate currently has one feature gate:
derive_display(enabled by default): Use theDisplay-trait forEtrace<MyType>using theDebugrepresentation ofMyType(instead of theDisplayrepresentation). This way you can pretty-print the underlying error types without the necessity to manually implement theDisplay-trait for them.