Skip to main content

shakrs_json_parser/types/
parse.rs

1//! Parse error type.
2
3/// Why parsing `shakrs.json` failed.
4#[derive(Debug, Clone)]
5pub enum ConfigParseError {
6    /// Not valid JSON, or valid JSON that violates the schema.
7    Schema(String),
8    /// Parsed and schema-valid, but a semantic rule failed.
9    Semantic(String),
10}