[][src]Enum ggez::error::GameError

pub enum GameError {
    FilesystemError(String),
    ConfigError(String),
    EventLoopError(String),
    ResourceLoadError(String),
    ResourceNotFound(StringVec<(PathBuf, GameError)>),
    RenderError(String),
    AudioError(String),
    WindowError(String),
    WindowCreationError(CreationError),
    IOError(Error),
    FontError(String),
    VideoError(String),
    ShaderProgramError(ProgramError),
    GamepadError(String),
    LyonError(String),
}

An enum containing all kinds of game framework errors.

Variants

FilesystemError(String)

An error in the filesystem layout

ConfigError(String)

An error in the config file

EventLoopError(String)

Happens when an winit::EventsLoopProxy attempts to wake up an winit::EventsLoop that no longer exists.

ResourceLoadError(String)

An error trying to load a resource, such as getting an invalid image file.

ResourceNotFound(StringVec<(PathBuf, GameError)>)

Unable to find a resource; the Vec is the paths it searched for and associated errors

RenderError(String)

Something went wrong in the renderer

AudioError(String)

Something went wrong in the audio playback

WindowError(String)

Something went wrong trying to set or get window properties.

WindowCreationError(CreationError)

Something went wrong trying to create a window

IOError(Error)

Something went wrong trying to read from a file

FontError(String)

Something went wrong trying to load/render a font

VideoError(String)

Something went wrong applying video settings.

ShaderProgramError(ProgramError)

Something went wrong compiling shaders

GamepadError(String)

Something went wrong with Gilrs

LyonError(String)

Something went wrong with the lyon shape-tesselation library.

Trait Implementations

impl From<AppDirsError> for GameError[src]

impl From<Error> for GameError[src]

impl From<Error> for GameError[src]

impl From<Error> for GameError[src]

impl From<ZipError> for GameError[src]

impl From<DecoderError> for GameError[src]

impl From<ImageError> for GameError[src]

impl From<PipelineStateError<String>> for GameError[src]

impl From<Error> for GameError[src]

impl<S, D> From<CopyError<S, D>> for GameError where
    S: Debug,
    D: Debug
[src]

impl From<CombinedError> for GameError[src]

impl From<CreationError> for GameError[src]

impl From<ResourceViewError> for GameError[src]

impl From<TargetViewError> for GameError[src]

impl<T> From<UpdateError<T>> for GameError where
    T: Debug + Display + 'static, 
[src]

impl From<ProgramError> for GameError[src]

impl From<EventsLoopClosed> for GameError[src]

impl From<CreationError> for GameError[src]

impl From<ContextError> for GameError[src]

impl From<Error> for GameError[src]

impl From<TessellationError> for GameError[src]

impl From<GeometryBuilderError> for GameError[src]

impl From<CreationError> for GameError[src]

impl Display for GameError[src]

impl Debug for GameError[src]

impl Error for GameError[src]

fn description(&self) -> &str
1.0.0
[src]

This method is soft-deprecated. Read more

fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0
[src]

The lower-level source of this error, if any. Read more

Auto Trait Implementations

impl Send for GameError

impl !Sync for GameError

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Erased for T

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.