mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-08 10:18:01 +02:00
protocol: introduce four new errors
UnknownInterface, UnknownObject, UnknownProperty and PropertyReadOnly, as discussed on the ML. The first two are already used by various bindings, such as the Qt and Java binding, but have never been made official. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34527 Reviewed-by: David Zeuthen <davidz@redhat.com> Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
09c9d6406b
commit
2c34514620
1 changed files with 9 additions and 1 deletions
|
|
@ -390,6 +390,14 @@ extern "C" {
|
||||||
#define DBUS_ERROR_FILE_EXISTS "org.freedesktop.DBus.Error.FileExists"
|
#define DBUS_ERROR_FILE_EXISTS "org.freedesktop.DBus.Error.FileExists"
|
||||||
/** Method name you invoked isn't known by the object you invoked it on. */
|
/** Method name you invoked isn't known by the object you invoked it on. */
|
||||||
#define DBUS_ERROR_UNKNOWN_METHOD "org.freedesktop.DBus.Error.UnknownMethod"
|
#define DBUS_ERROR_UNKNOWN_METHOD "org.freedesktop.DBus.Error.UnknownMethod"
|
||||||
|
/** Object you invoked a method on isn't known. */
|
||||||
|
#define DBUS_ERROR_UNKNOWN_OBJECT "org.freedesktop.DBus.Error.UnknownObject"
|
||||||
|
/** Interface you invoked a method on isn't known by the object. */
|
||||||
|
#define DBUS_ERROR_UNKNOWN_INTERFACE "org.freedesktop.DBus.Error.UnknownInterface"
|
||||||
|
/** Property you tried to access isn't known by the object. */
|
||||||
|
#define DBUS_ERROR_UNKNOWN_PROPERTY "org.freedesktop.DBus.Error.UnknownProperty"
|
||||||
|
/** Property you tried to set is read-only. */
|
||||||
|
#define DBUS_ERROR_PROPERTY_READ_ONLY "org.freedesktop.DBus.Error.PropertyReadOnly"
|
||||||
/** Certain timeout errors, e.g. while starting a service.
|
/** Certain timeout errors, e.g. while starting a service.
|
||||||
* @warning this is confusingly-named given that #DBUS_ERROR_TIMEOUT also exists. We can't fix
|
* @warning this is confusingly-named given that #DBUS_ERROR_TIMEOUT also exists. We can't fix
|
||||||
* it for compatibility reasons so just be careful.
|
* it for compatibility reasons so just be careful.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue