Enum havocompare::Error
source · pub enum Error {
IllegalGlobbingPattern(PatternError),
RegexCompilationError(Error),
CSVModuleError(Error),
ImageModuleError(Error),
ReportingError(Error),
SerdeYamlFail(Error),
SerdeJsonFail(Error),
FileAccessError(FatIOError),
FilePathParsingFails(String),
DifferentNumberOfFiles(usize, usize),
}
Expand description
Top-Level Error class for all errors that can happen during havocompare-running
Variants§
IllegalGlobbingPattern(PatternError)
Pattern used for globbing was invalid
RegexCompilationError(Error)
Regex pattern requested could not be compiled
CSVModuleError(Error)
An error occurred in the csv rule checker
ImageModuleError(Error)
An error occurred in the image rule checker
ReportingError(Error)
An error occurred in the reporting module
SerdeYamlFail(Error)
An error occurred during reading yaml
SerdeJsonFail(Error)
An error occurred during writing json
FileAccessError(FatIOError)
A problem happened while accessing a file
FilePathParsingFails(String)
could not extract filename from path
DifferentNumberOfFiles(usize, usize)
Different number of files matched pattern in actual and nominal
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<FatIOError> for Error
impl From<FatIOError> for Error
source§fn from(source: FatIOError) -> Self
fn from(source: FatIOError) -> Self
Converts to this type from the input type.
source§impl From<PatternError> for Error
impl From<PatternError> for Error
source§fn from(source: PatternError) -> Self
fn from(source: PatternError) -> Self
Converts to this type from the input type.