Enum ggez::error::GameError [−][src]
pub enum GameError {}Show variants
FilesystemError(String), ConfigError(String), EventLoopError(String), ResourceLoadError(String), ResourceNotFound(String, Vec<(PathBuf, GameError)>), RenderError(String), AudioError(String), WindowError(String), WindowCreationError(Arc<CreationError>), IOError(Arc<Error>), FontError(String), VideoError(String), ShaderProgramError(ProgramError), GamepadError(String), LyonError(String), CustomError(String),
Expand description
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::event_loop::EventLoopProxy
attempts to
wake up an winit::event_loop::EventLoop
that no longer exists.
ResourceLoadError(String)
An error trying to load a resource, such as getting an invalid image file.
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(Arc<CreationError>)
Something went wrong trying to create a window
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 the gilrs
gamepad-input library.
LyonError(String)
Something went wrong with the lyon
shape-tesselation library.
CustomError(String)
A custom error type for use by users of ggez. This lets you handle custom errors that may happen during your game (such as, trying to load a malformed file for a level) using the same mechanism you handle ggez’s other errors.
Please include an informative message with the error.
Trait Implementations
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
use the Display impl or to_string()
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for GameError
impl !UnwindSafe for GameError
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V