simple_selectors/parseerror.rs
1#[derive(Debug)]
2pub enum ParseError {
3 /// a selector must not be empty
4 EmptySelector,
5 /// the key at the position was invalid (i.e. some chars are not allowed within a key)
6 InvalidKey(usize),
7 /// the operator at the position is invalid
8 InvalidOperator(usize),
9 /// the selector must either finish at the position or another expression should start separated by a comma
10 ExpectingEndOrComma(usize),
11 /// a value was expected at the position
12 ExpectingValue(usize),
13 /// expecting opening parenthesis
14 ExpectingLeftParenthesis(usize),
15}