ratatui_splash_screen/
error.rs

1use std::error::Error;
2use std::fmt;
3
4/// Splash screen error.
5#[derive(Debug)]
6pub struct SplashError {
7    /// Error message.
8    pub message: String,
9}
10
11impl fmt::Display for SplashError {
12    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
13        write!(f, "Splash screen error: {}", self.message)
14    }
15}
16
17impl Error for SplashError {}