Sound.Alsa.Error
- data AlsaException = AlsaException {}
- checkResult :: Integral a => String -> a -> IO a
- checkResult_ :: Integral a => String -> a -> IO ()
- throwAlsa :: String -> Errno -> IO a
- catchAlsa :: IO a -> (AlsaException -> IO a) -> IO a
- catchAlsaErrno :: Errno -> IO a -> IO a -> IO a
- catchXRun :: IO a -> IO a -> IO a
- showAlsaException :: AlsaException -> String
- rethrowAlsaExceptions :: IO a -> IO a
- strerror :: Errno -> IO String
- snd_strerror :: Errno -> IO CString
Documentation
data AlsaException Source
Constructors
| AlsaException | |
Fields | |
checkResult :: Integral a => String -> a -> IO aSource
rethrowAlsaExceptions :: IO a -> IO aSource
Converts any AlsaException into an IOError.
This produces better a error message than letting an uncaught
AlsaException propagate to the top.
snd_strerror :: Errno -> IO CStringSource