2022-05-12 10:10:48 +02:00
|
|
|
use std::io;
|
|
|
|
|
use std::path::PathBuf;
|
|
|
|
|
use thiserror::Error;
|
|
|
|
|
|
|
|
|
|
#[derive(Error, Debug)]
|
2022-05-12 23:20:44 +02:00
|
|
|
pub(crate) enum ThemeError {
|
2022-05-12 10:10:48 +02:00
|
|
|
#[error("No 'index.theme' file for {0}")]
|
|
|
|
|
ThemeIndexNotFound(PathBuf),
|
|
|
|
|
#[error("IoError: {0}")]
|
|
|
|
|
IoError(#[from] io::Error),
|
|
|
|
|
#[error("IniError: {0}")]
|
|
|
|
|
IniError(#[from] ini::Error),
|
|
|
|
|
}
|