Skip to main content

skill_registry/
error.rs

1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum RegistryError {
5    #[error("IO error: {0}")]
6    Io(#[from] std::io::Error),
7
8    #[error("Parse error: {0}")]
9    ParseError(String),
10
11    #[error("Invalid path: {0}")]
12    InvalidPath(String),
13
14    #[error("Skill not found: {0}")]
15    NotFound(String),
16
17    #[error("Skill already exists: {0}")]
18    AlreadyExists(String),
19}