ouisync/store/error.rs
1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum Error {
5 #[error("database")]
6 Db(#[from] sqlx::Error),
7 #[error("malformed data")]
8 MalformedData,
9 #[error("branch not found")]
10 BranchNotFound,
11 #[error("attempt to create outdated root node")]
12 OutdatedRootNode,
13 #[error("attempt to create concurrent root node in the same branch")]
14 ConcurrentRootNode,
15 #[error("locator not found")]
16 LocatorNotFound,
17 #[error("block not found")]
18 BlockNotFound,
19}