1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thiserror::Error;

pub mod collection;

/// Wrapper around the various errors we can encounter while processing the data
#[derive(Error, Debug)]
pub enum NDJSONError {
    #[error("Failed to read input data")]
    IOError(#[from] std::io::Error),
    #[error("Line failed to parse as valid JSON")]
    JSONParsingError(#[from] serde_json::Error),
    #[error("Line returned empty for the given query")]
    EmptyQuery,
}