erratic 0.1.2

Handling errors in an efficient way.
Documentation
1
2
3
4
5
6
7
8
use erratic::*;
use std::error::Error as _;

#[test]
fn from_context_creates_const() {
    let err = Error::from_context(literal!("file not found"));
    assert!(err.erase_ref().source().is_none());
}