large_json_array/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum JsonError {
5    #[error("I/O error: {0}")]
6    Io(#[from] std::io::Error),
7    #[error("UTF-8 error: {0}")]
8    Utf8(#[from] std::str::Utf8Error),
9    #[error("JSON parse error: {0}")]
10    Serde(#[from] serde_json::Error),
11    #[error("Key not found: {0}")]
12    KeyNotFound(String),
13    #[error("Parser error")]
14    Parser,
15}