Skip to main content

notes_tools/
notes_error.rs

1//! Errors returned by note persistence and access checks.
2
3use thiserror::Error;
4
5#[derive(Debug, Error)]
6pub enum NotesError {
7    #[error("note not found")]
8    NotFound,
9    #[error("invalid note: {0}")]
10    Invalid(String),
11    #[error("storage error: {0}")]
12    Storage(String),
13    #[error("family storage error: {0}")]
14    Family(String),
15}