summaryrefslogtreecommitdiffstats
path: root/src/error.rs
blob: fb73c8d0b27822bdef1b647f4ffdf43599d87d40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
pub type Result<T> = std::result::Result<T, Error>;

#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("Failed to parse key input: {0:?}")]
    Physics(#[from] crate::physics::Error),

    #[error("Failed to parse key input: {0:?}")]
    IO(#[from] std::io::Error),

    #[error("Failed to write to screen: {0:?}")]
    Fmt(#[from] std::fmt::Error),
}