macro_rules! define_error {
    ($name:ident) => { ... };
}
Expand description

Defines a custom error generic $name<E> where E is an arbitrary payload type

Note: We use a macro to define a new type so that crates can easily implement stuff like From<T> for their errors which would not be possible if we define the error type here in this crate.