error-type 0.1.2

Provides a macro for constructing unifying error types.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*!

Check to make sure the macro works in non-root modules.
*/
#[macro_use] extern crate error_type;

mod inner {
    error_type! {
        #[derive(Debug)]
        enum Error {
            Other(String) {
                desc(e) &**e;
            },
        }
    }
}