fugue_ir/
error.rs

1use std::io;
2use std::path::PathBuf;
3use thiserror::Error;
4
5#[derive(Debug, Error)]
6pub enum Error {
7    #[error("cannot deserialise file `{}`: {}", path.display(), error)]
8    DeserialiseFile {
9        path: PathBuf,
10        error: crate::deserialise::Error,
11    },
12    #[error("cannot parse from file `{}`: {}", path.display(), error)]
13    ParseFile {
14        path: PathBuf,
15        error: io::Error,
16    },
17    #[error(transparent)]
18    Disassembly(#[from] crate::disassembly::Error),
19}