cpu_instructions_reader/
error.rs

1use std::{num::TryFromIntError, result};
2
3use thiserror::Error;
4
5pub type Result<T> = result::Result<T, Error>;
6
7#[derive(Error, Debug)]
8pub enum Error {
9    #[error("TryFromIntError")]
10    TryFromIntError(#[from] TryFromIntError),
11    #[error("Failed to create reader")]
12    FailedToCreate,
13    #[error("Failed to read cpu instruction number")]
14    FailedToRead,
15    #[error("Cpu core of InstructionNumberInstant are inconsistent and cannot be subtracted")]
16    InconsistentCore,
17}