pak_db/
error.rs

1use thiserror::Error;
2
3pub type PakResult<T> = Result<T, PakError>;
4
5#[derive(Error, Debug)]
6pub enum PakError {
7    #[error("Type mismatch error: {0} found, {1} expected")]
8    TypeMismatchError(String, String),
9    
10    #[error("Was unable to update rules item: {0}")]
11    UpdateRuleItemError(String),
12    #[error("Was unable to insert rules item: {0}")]
13    InsertRuleItemError(String),
14    #[error("There was an error packing the module: {0}")]
15    BincodeError(#[from] Box<bincode::ErrorKind>),
16    #[error("There was an error packing the module: {0}")]
17    FileError(#[from] std::io::Error),
18}