Files
keep/src/services/error.rs
Andrew Phillips bacfaa4fc3 refactor: remove manual Debug implementation for MetaPluginCommand
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
2025-08-27 21:47:40 -03:00

22 lines
602 B
Rust

use thiserror::Error;
#[derive(Error, Debug)]
pub enum CoreError {
#[error("Database error: {0}")]
Database(#[from] rusqlite::Error),
#[error("I/O error: {0}")]
Io(#[from] std::io::Error),
#[error("Item not found with id {0}")]
ItemNotFound(i64),
#[error("Item not found")]
ItemNotFoundGeneric,
#[error("Invalid input: {0}")]
InvalidInput(String),
#[error("Compression error: {0}")]
Compression(String),
#[error(transparent)]
Other(#[from] anyhow::Error),
#[error("Migration error: {0}")]
Migration(#[from] rusqlite_migration::Error),
}