Skip to main content

leyline_engine/
error.rs

1use crate::ids::NodeId;
2
3#[derive(Debug, thiserror::Error)]
4pub enum Error {
5    #[error("node not found: {0:?}")]
6    NodeNotFound(NodeId),
7
8    #[error("user key not found: {0}")]
9    KeyNotFound(String),
10
11    #[error("corrupt segment: {0}")]
12    CorruptSegment(String),
13
14    #[error("corrupt manifest: {0}")]
15    CorruptManifest(String),
16
17    #[error("graph is in-memory only; open it with a store to flush")]
18    NoStore,
19
20    #[error("io error: {0}")]
21    Io(#[from] std::io::Error),
22}