sdl2-2.5.2.0: Both high- and low-level bindings to the SDL library (version 2.0.6+).
Safe HaskellSafe
LanguageHaskell2010

SDL.Raw.Error

Synopsis

Error Handling

newtype SDLError Source #

Note: the CString is only valid until the next SDL function call. If you need to preserve the error message, make a copy of it.

Constructors

SDLError CString 

Instances

Instances details
Eq SDLError Source # 
Instance details

Defined in SDL.Raw.Error

Methods

(==) :: SDLError -> SDLError -> Bool

(/=) :: SDLError -> SDLError -> Bool

Show SDLError Source # 
Instance details

Defined in SDL.Raw.Error

Methods

showsPrec :: Int -> SDLError -> ShowS

show :: SDLError -> String

showList :: [SDLError] -> ShowS

Exception SDLError Source # 
Instance details

Defined in SDL.Raw.Error

throwError :: (MonadThrow m, MonadIO m) => m () Source #

Manual Error Handling

clearError :: MonadIO m => m () Source #

getError :: MonadIO m => m CString Source #

setError :: MonadIO m => CString -> m CInt Source #