1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use std::fmt::{Debug, Formatter};
use std::error::Error;
use std::fmt::Display;

mod display;
mod convert;

/// The result type of this crate.
pub type Result<T> = std::result::Result<T, ExampleError>;

/// A boxed error kind, wrapping an [ExampleErrorKind].
#[derive(Clone)]
pub struct ExampleError {
    kind: Box<ExampleErrorKind>,
}

/// The kind of [ExampleError].
#[derive(Debug, Copy, Clone)]
pub enum ExampleErrorKind {
    /// An unknown error.
    UnknownError
}