Enum lux::LuxError [] [src]

pub enum LuxError {
    WindowError(String),
    OpenGlError(String),
    ImageError(ImageError),
    ShaderError(ProgramCreationError),
    IoError(IoError),
    FontNotLoaded(String),
    DrawError(DrawError),
    TextureCreationError(TextureCreationError),
    IndexBufferCreationError,
    VertexBufferCreationError,
    FontMetadataError(DecodingError),
}

Any error that Lux might run into.

Variants

WindowError

An error that can occur when creating a window.

OpenGlError

An error that can occur when creating an opengl context.

ImageError

An error related to image decoding.

ShaderError

An error that can occur when compiling or linking shaders.

IoError

An error that can occur when required I/O fails.

FontNotLoaded

An error that can occur when attempting to use a font that hasn't been loaded yet.

DrawError

An error that was produced while submitting a draw call

TextureCreationError

An error occured while creating a texture

IndexBufferCreationError

An error creating an index buffer occured

VertexBufferCreationError

An error creating an vertex buffer occured

FontMetadataError

An error occurred when reading the metadata of a font

Trait Implementations

impl Error for LuxError

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

impl From<DecodingError> for LuxError

fn from(e: DecodingError) -> LuxError

impl From<ProgramCreationError> for LuxError

fn from(e: ProgramCreationError) -> LuxError

impl From<TextureCreationError> for LuxError

fn from(e: TextureCreationError) -> LuxError

impl From<IoError> for LuxError

fn from(ioe: IoError) -> LuxError

impl From<DrawError> for LuxError

fn from(e: DrawError) -> LuxError

impl From<ImageError> for LuxError

fn from(e: ImageError) -> LuxError

impl From<BufferCreationError> for LuxError

fn from(_: BufferCreationError) -> LuxError

impl From<BufferCreationError> for LuxError

fn from(_: BufferCreationError) -> LuxError

impl Display for LuxError

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

Derived Implementations

impl Debug for LuxError

fn fmt(&self, __arg_0: &mut Formatter) -> Result