1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// 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),
}