cosmic_freedesktop_icons/theme/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use std::io;
use std::path::PathBuf;
use thiserror::Error;

#[derive(Error, Debug)]
pub(crate) enum ThemeError {
    #[error("No 'index.theme' file for {0}")]
    ThemeIndexNotFound(PathBuf),
    #[error("IoError: {0}")]
    IoError(#[from] io::Error),
    #[error("IniError: {0}")]
    IniError(#[from] ini::Error),
}