snitch_detective/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum CustomError {
5    #[error("error: {0}")]
6    Error(String),
7
8    #[error("match error: {0}")]
9    MatchError(String),
10
11    #[error("regex error: {source}")]
12    RegexError {
13        #[from]
14        source: regex::Error,
15    },
16
17    #[error("missing match type: {0}")]
18    MissingMatchType(i32),
19}