alsa-0.2: Binding to the ALSA Library API.Source codeContentsIndex
Sound.Alsa.Error
Synopsis
data AlsaException = AlsaException {
exception_location :: String
exception_description :: String
exception_code :: Errno
}
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
exception_location :: String
exception_description :: String
exception_code :: Errno
show/hide Instances
checkResult :: Integral a => String -> a -> IO aSource
checkResult_ :: Integral a => String -> a -> IO ()Source
throwAlsa :: String -> Errno -> IO aSource
catchAlsa :: IO a -> (AlsaException -> IO a) -> IO aSource
catchAlsaErrnoSource
::
=> Errno
-> IO aAction
-> IO aHandler
-> IO a
catchXRunSource
::
=> IO aAction
-> IO aHandler
-> IO a
showAlsaException :: AlsaException -> StringSource
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.
strerror :: Errno -> IO StringSource
Returns the message for an error code.
snd_strerror :: Errno -> IO CStringSource
Produced by Haddock version 2.4.2