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;
use ;
/// The error kind
// Define our custom error type
define_error!;
/// A function that will always fail
// Will panic with a nice error
if let Err = will_fail
Features
This crate currently has one feature gate:
force_backtrace
(disabled by default): Ifforce_backtrace
is enable, the backtrace is always captured, regardless whetherRUST_BACKTRACE
is set or not.