Skip to main content

khive_query/
error.rs

1/// Errors produced by the query parsing and compilation pipeline.
2#[derive(Debug, thiserror::Error)]
3pub enum QueryError {
4    #[error("parse error at position {position}: {message}")]
5    Parse { position: usize, message: String },
6
7    #[error("compile error: {0}")]
8    Compile(String),
9
10    #[error("validation error: {0}")]
11    Validation(String),
12
13    #[error("unsupported feature: {0}")]
14    Unsupported(String),
15}