1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Error, Debug, PartialEq, Eq, Clone)]
pub enum CompressorError {
    #[error("Dict not init")]
    DictNotInit,
    #[error("Invalid range")]
    InvalidRange,
    #[error("Lookup not found")]
    LookupNotFound,
    #[error("Unsuported method: `{0}`")]
    UnsuportedMethod(u8),
}