use crate::ids::NodeId;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("node not found: {0:?}")]
NodeNotFound(NodeId),
#[error("user key not found: {0}")]
KeyNotFound(String),
#[error("corrupt segment: {0}")]
CorruptSegment(String),
#[error("corrupt manifest: {0}")]
CorruptManifest(String),
#[error("graph is in-memory only; open it with a store to flush")]
NoStore,
#[error("io error: {0}")]
Io(#[from] std::io::Error),
}