pub enum ParserError {
IoError(String),
ParseError(String),
InvalidFormat(String),
}
Expand description
Custom error type for the parser library.
Represents different categories of errors that can occur during parsing operations, including I/O errors, parsing errors, and format validation errors.
Variants§
IoError(String)
An error occurred while reading or writing a file.
This includes file system errors, issues with file permissions, or problems with temporary file creation.
ParseError(String)
An error occurred while parsing the content of a file.
This includes syntax errors, encoding problems, or issues with the internal structure of documents.
InvalidFormat(String)
The file has an invalid or unsupported format.
This occurs when the file type cannot be recognized or is not supported by the parser library.
Trait Implementations§
Source§impl Debug for ParserError
impl Debug for ParserError
Source§impl Display for ParserError
impl Display for ParserError
Source§impl Error for ParserError
Implements the std::error::Error trait for ParserError to allow it to be used
with the ? operator and to be boxed as a dyn Error.
impl Error for ParserError
Implements the std::error::Error trait for ParserError to allow it to be used with the ? operator and to be boxed as a dyn Error.