alsa-core-0.5.0.1: Binding to the ALSA Library API (Exceptions).

Safe HaskellSafe-Infered

Sound.ALSA.Exception

Description

ALSA does not distinguish between programming errors and runtime exceptions, which is sad, but we have to cope with it.

Synopsis

Documentation

data T Source

Constructors

Cons 

Instances

checkResultMaybe :: String -> (CInt -> a) -> (CInt -> Maybe a) -> CInt -> IO aSource

catch :: IO a -> (T -> IO a) -> IO aSource

catchErrnoSource

Arguments

:: Errno 
-> IO a

Action

-> IO a

Handler

-> IO a 

catchXRunSource

Arguments

:: IO a

Action

-> IO a

Handler

-> IO a 

rethrow :: IO a -> IO aSource

Converts any T into an IOError. This produces better a error message than letting an uncaught T propagate to the top.

strerror :: Errno -> IO StringSource

Returns the message for an error code.