1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("Flattening the JSON failed: {0}")]
Flattening(#[from] flatten_json_object::Error),
#[error(
"Two objects have keys that should be different but end looking the same after flattening"
)]
FlattenedKeysCollision,
#[error("Writting a CSV record failed: {0}")]
WrittingCSV(#[from] csv::Error),
#[error("Parsing JSON failed: {0}")]
ParsingJson(#[from] serde_json::Error),
#[error("Input/output error: {0}")]
InputOutput(#[from] std::io::Error),
}