jsona 0.6.0

A JSONA parser, analyzer and formatter library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::node::Key;
use crate::syntax::SyntaxElement;
use thiserror::Error;

#[derive(Debug, Clone, Error)]
pub enum DomError {
    #[error("the syntax is not valid node")]
    InvalidNode { syntax: SyntaxElement },
    #[error("the syntax is not valid string")]
    InvalidString { syntax: SyntaxElement },
    #[error("the syntax is not valid number")]
    InvalidNumber { syntax: SyntaxElement },
    #[error("conflicting keys")]
    ConflictingKeys { key: Key, other_key: Key },
}