HDBus: Haskell DBus bindingsContentsIndex
DBus
Contents
Constants
Error Handling
Synopsis
type ServiceName = String
type PathName = FilePath
type InterfaceName = String
serviceDBus :: ServiceName
pathDBus :: PathName
pathLocal :: PathName
interfaceDBus :: InterfaceName
interfaceIntrospectable :: InterfaceName
interfaceLocal :: InterfaceName
data Error = Error String String
Constants
Well-known service, path, and interface names.
type ServiceName = String
type PathName = FilePath
type InterfaceName = String
serviceDBus :: ServiceName
pathDBus :: PathName
pathLocal :: PathName
interfaceDBus :: InterfaceName
interfaceIntrospectable :: InterfaceName
interfaceLocal :: InterfaceName
Error Handling

Some DBus functions can only fail on out-of-memory conditions. I don't think there is much we can do in those cases.

Other DBus functions can fail with other sorts of errors, which are raised as dynamic exceptions. Errors can be caught with catchDyn, like this:

 do conn <- DBus.busGet DBus.System
    doSomethingWith conn
 `catchDyn` (\(DBus.Error name msg) -> putStrLn ("DBus error! " ++ msg))
data Error
Errors carry a name (like "org.freedesktop.dbus.Foo") and a message (like "connection failed").
Constructors
Error String String
show/hide Instances
Show Error
Typeable Error
Produced by Haddock version 0.7