Enum ggez::error::GameError
[−]
[src]
pub enum GameError { FilesystemError(String), ConfigError(String), SdlError(String), IntegerError(String), ResourceLoadError(String), ResourceNotFound(String, Vec<(PathBuf, GameError)>), RenderError(String), AudioError(String), WindowError(InitError), IOError(Error), FontError(String), VideoError(String), ShaderProgramError(ProgramError), UnknownError(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
SdlError(String)
An error in some part of the underlying SDL library.
IntegerError(String)
An error saying that a an integer overflow/underflow occured in an underlying library.
ResourceLoadError(String)
An error trying to parse a resource
ResourceNotFound(String, Vec<(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(InitError)
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 compiling shaders
UnknownError(String)
Something else happened; this is generally a bug.
Trait Implementations
impl Debug for GameError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for GameError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for GameError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl From<String> for GameError
[src]
impl From<InitError> for GameError
[src]
impl From<IntegerOrSdlError> for GameError
[src]
fn from(e: IntegerOrSdlError) -> GameError
[src]
Performs the conversion.
impl From<PrefPathError> for GameError
[src]
fn from(e: PrefPathError) -> GameError
[src]
Performs the conversion.
impl From<TextureValueError> for GameError
[src]
fn from(e: TextureValueError) -> GameError
[src]
Performs the conversion.
impl From<AppDirsError> for GameError
[src]
fn from(e: AppDirsError) -> GameError
[src]
Performs the conversion.
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]
fn from(e: DecoderError) -> GameError
[src]
Performs the conversion.
impl From<ImageError> for GameError
[src]
fn from(e: ImageError) -> GameError
[src]
Performs the conversion.
impl From<PipelineStateError<String>> for GameError
[src]
fn from(e: PipelineStateError<String>) -> GameError
[src]
Performs the conversion.
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]
T: Debug + Display + 'static,
fn from(e: UpdateError<T>) -> GameError
[src]
Performs the conversion.
impl From<ProgramError> for GameError
[src]
fn from(e: ProgramError) -> GameError
[src]
Performs the conversion.