versoview/errors.rs
/// Convenient type alias of Result type for Verso.
pub type Result<T> = std::result::Result<T, Error>;
/// Errors returned by Verso.
#[non_exhaustive]
#[derive(thiserror::Error, Debug)]
pub enum Error {
/// The error type for when the OS cannot perform the requested operation.
#[error(transparent)]
OsError(#[from] winit::error::OsError),
/// A general error that may occur while running the Winit event loop.
#[error(transparent)]
EventLoopError(#[from] winit::error::EventLoopError),
/// Glutin errors.
#[error(transparent)]
GlutinError(#[from] glutin::error::Error),
/// IPC errors.
#[error(transparent)]
IpcError(#[from] ipc_channel::ipc::IpcError),
}