link_cli/error.rs
1//! Error types for link operations
2//!
3//! This module defines all error types used throughout the link-cli.
4
5use thiserror::Error;
6
7/// Error types for link operations
8#[derive(Error, Debug)]
9pub enum LinkError {
10 #[error("Link not found: {0}")]
11 NotFound(u32),
12
13 #[error("Invalid link format: {0}")]
14 InvalidFormat(String),
15
16 #[error("Storage error: {0}")]
17 StorageError(String),
18
19 #[error("Query error: {0}")]
20 QueryError(String),
21
22 #[error("Parse error: {0}")]
23 ParseError(String),
24}