1 2 3 4 5 6 7 8 9 10 11 12 13 14
/// glassbench error type
#[derive(thiserror::Error, Debug)]
pub enum GlassBenchError {
#[error("IO error: {0}")]
IO(#[from] std::io::Error),
#[error("iter already called")]
IterAlreadyCalled,
#[error("SQLite error: {0}")]
SQLite(#[from] rusqlite::Error),
#[error("User query not understood")]
ClientError,
#[error("JSON error: {0}")]
Json(#[from] serde_json::Error),
}