//! TRACES: NFR-ARCH-4 //! Thumbnail store errors. //! //! A thumbnail is a cache entry, never authoritative — every failure here is //! recoverable by regenerating from the source, so nothing in this module is //! fatal to the app. /// Something went wrong reading or writing the store. #[derive(Debug, thiserror::Error)] pub enum ThumbError { #[error("sqlite: {0}")] Sqlite(#[from] rusqlite::Error), /// The index names a shard whose file is absent — a partial sync, or a /// manual deletion. The entry is treated as a miss and regenerated. #[error("shard {0} is missing")] MissingShard(u32), #[error("io: {0}")] Io(String), }