use std::io;
use thiserror::Error;
use wayland_client::{
ConnectError, DispatchError,
globals::{BindError, GlobalError},
};
#[derive(Error, Debug)]
pub enum HaruhiError {
#[error("Init Failed connection")]
InitFailedConnection(#[from] ConnectError),
#[error("Init Failed Global")]
InitFailedGlobal(#[from] GlobalError),
#[error("Dispatch Error")]
DispatchError(#[from] DispatchError),
#[error("Error during queue")]
BindError(#[from] BindError),
#[error("Error in write image in shm")]
ShmError(#[from] io::Error),
#[error("Not Support format")]
NotSupportFormat,
#[error("Capture Failed")]
CaptureFailed(String),
}