analyse_json/json/ndjson/
errors.rs

1use thiserror::Error;
2
3pub mod collection;
4
5/// Wrapper around the various errors we can encounter while processing the data
6#[derive(Error, Debug)]
7pub enum NDJSONError {
8    #[error("Failed to read input data")]
9    IOError(#[from] std::io::Error),
10    #[error("Line failed to parse as valid JSON")]
11    JSONParsingError(#[from] serde_json::Error),
12    #[error("Line returned empty for the given query")]
13    EmptyQuery,
14}