DBus-0.4: DBus bindings

DBus

Contents

Synopsis

Constants

Well-known service, path, and interface names.

Error Handling

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

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

 do conn <- DBus.busGet DBus.System
    doSomethingWith conn
 `catchDyn` (\(DBus.Error name msg) -> putStrLn ("D-Bus error! " ++ msg))

data Error Source

Errors carry a name (like "org.freedesktop.dbus.Foo") and a message (like "connection failed").

Constructors

Error String String 

Instances