solidhunter_lib/
errors.rs1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum SolidHunterError {
5 #[error("SolidHunterError: Ast Extractor error occured")]
7 AstError(#[from] osmium_libs_solidity_ast_extractor::errors::ExtractError),
8 #[error("SolidHunterError: Something went wrong with the file during parsing")]
9 ParsingError(#[from] std::io::Error),
10 #[error("SolidHunterError: Serde error occured")]
11 SerdeError(#[from] serde_json::Error),
12 #[error("SolidHunterError: Something went wrong")]
13 LinterError(String),
14
15 #[error("SolidHunterError: IO error occured with Rules")]
17 IoError(std::io::Error),
18}