rat_theme4/error.rs
1use std::error::Error;
2use std::fmt::{Display, Formatter};
3
4#[derive(Debug)]
5pub struct LoadPaletteErr(pub String);
6
7impl Display for LoadPaletteErr {
8 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
9 write!(f, "load palette failed: {}", self.0)
10 }
11}
12
13impl Error for LoadPaletteErr {}