Skip to main content

kawat_xpath/
error.rs

1#[derive(Debug, thiserror::Error)]
2pub enum XpathError {
3    #[error("failed to parse HTML for XPath evaluation")]
4    HtmlParseError,
5    #[error("XPath compilation error: {0}")]
6    CompileError(String),
7    #[error("XPath evaluation error: {0}")]
8    EvalError(String),
9    #[error("no results for expression")]
10    NoResults,
11}