[−][src]Crate core_error
Traits for working with Error
in std
-less environments.
Warning
This is a pre-release meant to allow experimentation and integration into the various error handling crates. Please do not use it yet! 1.0.0 is right around the corner.
Usage
This crate provides an Error
trait which is identical
to the one in std, except for not providing deprecated methods.
This library also exposes two opt-in features:
std
: simply re-exportstd::error::Error
.alloc
: implement theError
trait onalloc
errors (including boxed types).
Libraries using this crate should forward their equivalent features to this library.
Minimum Supported Rust Version (MSRV)
With the default features, this crate works all the way down to 1.0.0. It
simply reexport libstd's std::error
module.
With no-default-features
, the crate only compiles from 1.13.0 onwards
(see #11 for more information on this limitation). It auto-detects the
Rust version in order to know which error structs to implement the trait on.
Traits
Error |
|