|
|
|
|
|
|
| Synopsis |
|
|
|
|
| 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 | | Instances | |
|
|
| Produced by Haddock version 0.7 |