pub enum SimdXmlError {
ParseError {
offset: usize,
message: String,
},
XPathParseError(String),
XPathEvalError(String),
UnclosedTag(usize),
MismatchedCloseTag {
expected: String,
found: String,
offset: usize,
},
InvalidXml(String),
Io(Error),
InvalidSxi(String),
StaleSxi,
}Expand description
All errors produced by simdxml.
Variants§
ParseError
A structural XML parse error at a specific byte offset. Returned when the parser encounters malformed markup.
XPathParseError(String)
The XPath expression string could not be parsed. Contains details about the syntax error.
XPathEvalError(String)
An error occurred during XPath evaluation (e.g., type mismatch, unsupported function, or invalid axis traversal).
UnclosedTag(usize)
A < was found without a matching >. The byte offset points to the <.
MismatchedCloseTag
A </name> close tag does not match the expected open tag.
InvalidXml(String)
The input is not valid XML (e.g., not valid UTF-8 or structurally broken).
Io(Error)
An I/O error from reading XML files or .sxi index files.
InvalidSxi(String)
The .sxi serialized index file is corrupt or has an incompatible format.
StaleSxi
The .sxi index is stale: the XML file has been modified since the
index was built. Re-parse with crate::load_or_parse to rebuild.
Trait Implementations§
Source§impl Debug for SimdXmlError
impl Debug for SimdXmlError
Source§impl Display for SimdXmlError
impl Display for SimdXmlError
Source§impl Error for SimdXmlError
impl Error for SimdXmlError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()