use thiserror::Error;
#[derive(Error, Debug)]
#[non_exhaustive]
pub enum Error {
#[error("Failed to parse triple: {0}")]
ParseTriple(String),
#[error("Invalid N-Triples format: {0}")]
InvalidNTriples(String),
#[error("Entity not found: {0}")]
EntityNotFound(String),
#[error("IO error: {0}")]
Io(#[from] std::io::Error),
#[error("Invalid format: {0}")]
InvalidFormat(String),
#[error("Missing file: {0}")]
MissingFile(String),
#[error("JSON error: {0}")]
Json(#[from] serde_json::Error),
#[error("serialization error: {0}")]
Serialization(Box<dyn std::error::Error + Send + Sync>),
}
pub type Result<T> = std::result::Result<T, Error>;