Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- 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.
throwError :: (MonadThrow m, MonadIO m) => m () Source #
Manual Error Handling
clearError :: MonadIO m => m () Source #