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
16 /// A query parameter value is out of the allowed range (ADR-008 ยง"Depth limits").
17 #[error("invalid input: {0}")]
18 InvalidInput(String),
19}