1use thiserror::Error;
2
3pub type Result<T> = std::result::Result<T, Error>;
4
5#[derive(Debug, Error)]
6pub enum Error {
7 #[error("Could not connect to a remote socket")]
8 CouldNotConnect,
9 #[error("Input closed before pattern could be found")]
10 PatternNotFound,
11 #[error("Goblin")]
12 Goblin(#[from] goblin::error::Error),
13 #[error("IO")]
14 IO(#[from] std::io::Error),
15 #[error("Int parsing")]
16 ParseInt(#[from] std::num::ParseIntError),
17 #[error("UTF8")]
18 UTF8(#[from] std::str::Utf8Error),
19}