use egui_winit::winit;
#[derive(thiserror::Error, Debug)]
pub enum Error {
#[error("event loop failed: {0}")]
EventLoopFail(#[source] winit::error::EventLoopError),
#[error("could not build event loop: {0}")]
EventLoopBuildFail(#[source] winit::error::EventLoopError),
#[error("could not send message over channel: channel disconnected")]
SendingOverChannel,
#[error("the {0} renderer is not enabled")]
RendererUnavailable(&'static str),
#[cfg(all(feature = "ctrlc", not(target_os = "android")))]
#[error("could not set ctrlc handler: {0}")]
SetSigHandler(#[source] ctrlc::Error),
}