flameshot/
flameshot_error.rs

1use std::{error::Error, fmt::Display};
2
3#[derive(Clone, Debug, Eq, PartialEq, PartialOrd, Hash, Ord)]
4pub enum FlameshotError {
5    Os(String),
6    Flameshot(String),
7    #[cfg(feature = "image")]
8    Image(String),
9}
10
11impl Display for FlameshotError {
12    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
13        write!(f, "{:?}", self)
14    }
15}
16
17impl Error for FlameshotError {}