Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype SDLError = SDLError CString
- throwError :: (MonadThrow m, MonadIO m) => m ()
- clearError :: MonadIO m => m ()
- getError :: MonadIO m => m CString
- setError :: MonadIO m => CString -> m CInt
Error Handling
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.
Instances
Exception SDLError Source # | |
Defined in SDL.Raw.Error toException :: SDLError -> SomeException Source # fromException :: SomeException -> Maybe SDLError Source # displayException :: SDLError -> String Source # | |
Show SDLError Source # | |
Eq SDLError Source # | |
throwError :: (MonadThrow m, MonadIO m) => m () Source #
Manual Error Handling
clearError :: MonadIO m => m () Source #