tact_parser/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum Error {
5    #[error("IO error: {0}")]
6    IOError(#[from] std::io::Error),
7
8    #[error("Not implemented")]
9    NotImplemented,
10
11    #[error("File ID delta over- or under-flows")]
12    FileIdDeltaOverflow,
13
14    #[error("File has incorrect magic - possibly wrong file format")]
15    BadMagic,
16
17    #[error("Failed precondition")]
18    FailedPrecondition,
19}