| 4 | |
| 5 | #[derive(thiserror::Error, Debug)] |
| 6 | pub enum Error { |
| 7 | #[error("IO Error")] |
| 8 | IoError(#[from] std::io::Error), |
| 9 | #[error("Invalid parameter")] |
| 10 | InvalidParameter(String), |
| 11 | #[error("Tap Error")] |
| 12 | TapSerializerError(riscv_cove_tap::TapError), |
| 13 | #[error("Int casting Error")] |
| 14 | TryFromIntErr(#[from] std::num::TryFromIntError), |
| 15 | #[error("Cannot open file {0}")] |
| 16 | CannotOpenFile(String), |
| 17 | #[error("Could not parse int")] |
| 18 | IntParseError(#[from] core::num::ParseIntError), |
| 19 | #[error("Placeholder error")] |
| 20 | PlaceholderError(), |
| 21 | } |
| 22 | |
| 23 | impl From<riscv_cove_tap::TapError> for Error { |
| 24 | fn from(err: riscv_cove_tap::TapError) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected