1use thiserror::Error; 2 3#[derive(Error, Debug)] 4pub enum ScreenError { 5 #[error("Error writing data to screen")] 6 WriteError, 7 #[error("Wrong image size; must be 320x480 or 480x320")] 8 WrongImageSize 9}