Skip to main content

rlobkit_core/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum RlobKitError {
5    #[error("IO error: {0}")]
6    Io(#[from] std::io::Error),
7
8    #[error("Picker cancelled by user")]
9    Cancelled,
10
11    #[error("Unsupported operation: {0}")]
12    UnsupportedOperation(String),
13
14    #[error("Invalid URI: {0}")]
15    InvalidUri(String),
16
17    #[error("Image error: {0}")]
18    Image(String),
19}