termimad/errors.rs
1use crate::fit::InsufficientWidthError;
2
3/// Termimad error type
4#[derive(thiserror::Error, Debug)]
5pub enum Error {
6 #[error("IO error: {0}")]
7 IO(#[from] std::io::Error),
8
9 #[error("InsufficientWidth: {0}")]
10 InsufficientWidth(#[from] InsufficientWidthError),
11}
12
13pub(crate) type Result<T> = std::result::Result<T, Error>;