use crate::futures::futures;
use crate::graphics;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("the futures executor could not be created")]
ExecutorCreationFailed(futures::io::Error),
#[error("the application window could not be created")]
WindowCreationFailed(winit::error::OsError),
#[error("the application graphics context could not be created")]
GraphicsCreationFailed(graphics::Error),
}
impl From<graphics::Error> for Error {
fn from(error: iced_graphics::Error) -> Error {
Error::GraphicsCreationFailed(error)
}
}