dbus-error.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DBUSCXX_ERROR_FAILED   "org.freedesktop.DBus.Error.Failed"
 A generic error; "something went wrong" - see the error message for more. More...
 
#define DBUSCXX_ERROR_NO_MEMORY   "org.freedesktop.DBus.Error.NoMemory"
 There was not enough memory to complete an operation. More...
 
#define DBUSCXX_ERROR_SERVICE_UNKNOWN   "org.freedesktop.DBus.Error.ServiceUnknown"
 The bus doesn't know how to launch a service to supply the bus name you wanted. More...
 
#define DBUSCXX_ERROR_NAME_HAS_NO_OWNER   "org.freedesktop.DBus.Error.NameHasNoOwner"
 The bus name you referenced doesn't exist (i.e. More...
 
#define DBUSCXX_ERROR_NO_REPLY   "org.freedesktop.DBus.Error.NoReply"
 No reply to a message expecting one, usually means a timeout occurred. More...
 
#define DBUSCXX_ERROR_IO_ERROR   "org.freedesktop.DBus.Error.IOError"
 Something went wrong reading or writing to a socket, for example. More...
 
#define DBUSCXX_ERROR_BAD_ADDRESS   "org.freedesktop.DBus.Error.BadAddress"
 A D-Bus bus address was malformed. More...
 
#define DBUSCXX_ERROR_NOT_SUPPORTED   "org.freedesktop.DBus.Error.NotSupported"
 Requested operation isn't supported (like ENOSYS on UNIX). More...
 
#define DBUSCXX_ERROR_LIMITS_EXCEEDED   "org.freedesktop.DBus.Error.LimitsExceeded"
 Some limited resource is exhausted. More...
 
#define DBUSCXX_ERROR_ACCESS_DENIED   "org.freedesktop.DBus.Error.AccessDenied"
 Security restrictions don't allow doing what you're trying to do. More...
 
#define DBUSCXX_ERROR_AUTH_FAILED   "org.freedesktop.DBus.Error.AuthFailed"
 Authentication didn't work. More...
 
#define DBUSCXX_ERROR_NO_SERVER   "org.freedesktop.DBus.Error.NoServer"
 Unable to connect to server (probably caused by ECONNREFUSED on a socket). More...
 
#define DBUSCXX_ERROR_TIMEOUT   "org.freedesktop.DBus.Error.Timeout"
 Certain timeout errors, possibly ETIMEDOUT on a socket. More...
 
#define DBUSCXX_ERROR_NO_NETWORK   "org.freedesktop.DBus.Error.NoNetwork"
 No network access (probably ENETUNREACH on a socket). More...
 
#define DBUSCXX_ERROR_ADDRESS_IN_USE   "org.freedesktop.DBus.Error.AddressInUse"
 Can't bind a socket since its address is in use (i.e. More...
 
#define DBUSCXX_ERROR_DISCONNECTED   "org.freedesktop.DBus.Error.Disconnected"
 The connection is disconnected and you're trying to use it. More...
 
#define DBUSCXX_ERROR_INVALID_ARGS   "org.freedesktop.DBus.Error.InvalidArgs"
 Invalid arguments passed to a method call. More...
 
#define DBUSCXX_ERROR_FILE_NOT_FOUND   "org.freedesktop.DBus.Error.FileNotFound"
 Missing file. More...
 
#define DBUSCXX_ERROR_FILE_EXISTS   "org.freedesktop.DBus.Error.FileExists"
 Existing file and the operation you're using does not silently overwrite. More...
 
#define DBUSCXX_ERROR_UNKNOWN_METHOD   "org.freedesktop.DBus.Error.UnknownMethod"
 Method name you invoked isn't known by the object you invoked it on. More...
 
#define DBUSCXX_ERROR_UNKNOWN_OBJECT   "org.freedesktop.DBus.Error.UnknownObject"
 Object you invoked a method on isn't known. More...
 
#define DBUSCXX_ERROR_UNKNOWN_INTERFACE   "org.freedesktop.DBus.Error.UnknownInterface"
 Interface you invoked a method on isn't known by the object. More...
 
#define DBUSCXX_ERROR_UNKNOWN_PROPERTY   "org.freedesktop.DBus.Error.UnknownProperty"
 Property you tried to access isn't known by the object. More...
 
#define DBUSCXX_ERROR_PROPERTY_READ_ONLY   "org.freedesktop.DBus.Error.PropertyReadOnly"
 Property you tried to set is read-only. More...
 
#define DBUSCXX_ERROR_TIMED_OUT   "org.freedesktop.DBus.Error.TimedOut"
 Certain timeout errors, e.g. More...
 
#define DBUSCXX_ERROR_MATCH_RULE_NOT_FOUND   "org.freedesktop.DBus.Error.MatchRuleNotFound"
 Tried to remove or modify a match rule that didn't exist. More...
 
#define DBUSCXX_ERROR_MATCH_RULE_INVALID   "org.freedesktop.DBus.Error.MatchRuleInvalid"
 The match rule isn't syntactically valid. More...
 
#define DBUSCXX_ERROR_SPAWN_EXEC_FAILED   "org.freedesktop.DBus.Error.Spawn.ExecFailed"
 While starting a new process, the exec() call failed. More...
 
#define DBUSCXX_ERROR_SPAWN_FORK_FAILED   "org.freedesktop.DBus.Error.Spawn.ForkFailed"
 While starting a new process, the fork() call failed. More...
 
#define DBUSCXX_ERROR_SPAWN_CHILD_EXITED   "org.freedesktop.DBus.Error.Spawn.ChildExited"
 While starting a new process, the child exited with a status code. More...
 
#define DBUSCXX_ERROR_SPAWN_CHILD_SIGNALED   "org.freedesktop.DBus.Error.Spawn.ChildSignaled"
 While starting a new process, the child exited on a signal. More...
 
#define DBUSCXX_ERROR_SPAWN_FAILED   "org.freedesktop.DBus.Error.Spawn.Failed"
 While starting a new process, something went wrong. More...
 
#define DBUSCXX_ERROR_SPAWN_SETUP_FAILED   "org.freedesktop.DBus.Error.Spawn.FailedToSetup"
 We failed to setup the environment correctly. More...
 
#define DBUSCXX_ERROR_SPAWN_CONFIG_INVALID   "org.freedesktop.DBus.Error.Spawn.ConfigInvalid"
 We failed to setup the config parser correctly. More...
 
#define DBUSCXX_ERROR_SPAWN_SERVICE_INVALID   "org.freedesktop.DBus.Error.Spawn.ServiceNotValid"
 Bus name was not valid. More...
 
#define DBUSCXX_ERROR_SPAWN_SERVICE_NOT_FOUND   "org.freedesktop.DBus.Error.Spawn.ServiceNotFound"
 Service file not found in system-services directory. More...
 
#define DBUSCXX_ERROR_SPAWN_PERMISSIONS_INVALID   "org.freedesktop.DBus.Error.Spawn.PermissionsInvalid"
 Permissions are incorrect on the setuid helper. More...
 
#define DBUSCXX_ERROR_SPAWN_FILE_INVALID   "org.freedesktop.DBus.Error.Spawn.FileInvalid"
 Service file invalid (Name, User or Exec missing). More...
 
#define DBUSCXX_ERROR_SPAWN_NO_MEMORY   "org.freedesktop.DBus.Error.Spawn.NoMemory"
 Tried to get a UNIX process ID and it wasn't available. More...
 
#define DBUSCXX_ERROR_UNIX_PROCESS_ID_UNKNOWN   "org.freedesktop.DBus.Error.UnixProcessIdUnknown"
 Tried to get a UNIX process ID and it wasn't available. More...
 
#define DBUSCXX_ERROR_INVALID_SIGNATURE   "org.freedesktop.DBus.Error.InvalidSignature"
 A type signature is not valid. More...
 
#define DBUSCXX_ERROR_INVALID_FILE_CONTENT   "org.freedesktop.DBus.Error.InvalidFileContent"
 A file contains invalid syntax or is otherwise broken. More...
 
#define DBUSCXX_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN   "org.freedesktop.DBus.Error.SELinuxSecurityContextUnknown"
 Asked for SELinux security context and it wasn't available. More...
 
#define DBUSCXX_ERROR_ADT_AUDIT_DATA_UNKNOWN   "org.freedesktop.DBus.Error.AdtAuditDataUnknown"
 Asked for ADT audit data and it wasn't available. More...
 
#define DBUSCXX_ERROR_OBJECT_PATH_IN_USE   "org.freedesktop.DBus.Error.ObjectPathInUse"
 There's already an object with the requested object path. More...
 
#define DBUSCXX_ERROR_INCONSISTENT_MESSAGE   "org.freedesktop.DBus.Error.InconsistentMessage"
 The message meta data does not match the payload. More...
 
#define DBUSCXX_ERROR_INTERACTIVE_AUTHORIZATION_REQUIRED   "org.freedesktop.DBus.Error.InteractiveAuthorizationRequired"
 The message is not allowed without performing interactive authorization, but could have succeeded if an interactive authorization step was allowed. More...
 

Macro Definition Documentation

◆ DBUSCXX_ERROR_ACCESS_DENIED

#define DBUSCXX_ERROR_ACCESS_DENIED   "org.freedesktop.DBus.Error.AccessDenied"

Security restrictions don't allow doing what you're trying to do.

◆ DBUSCXX_ERROR_ADDRESS_IN_USE

#define DBUSCXX_ERROR_ADDRESS_IN_USE   "org.freedesktop.DBus.Error.AddressInUse"

Can't bind a socket since its address is in use (i.e.

EADDRINUSE).

◆ DBUSCXX_ERROR_ADT_AUDIT_DATA_UNKNOWN

#define DBUSCXX_ERROR_ADT_AUDIT_DATA_UNKNOWN   "org.freedesktop.DBus.Error.AdtAuditDataUnknown"

Asked for ADT audit data and it wasn't available.

◆ DBUSCXX_ERROR_AUTH_FAILED

#define DBUSCXX_ERROR_AUTH_FAILED   "org.freedesktop.DBus.Error.AuthFailed"

Authentication didn't work.

◆ DBUSCXX_ERROR_BAD_ADDRESS

#define DBUSCXX_ERROR_BAD_ADDRESS   "org.freedesktop.DBus.Error.BadAddress"

A D-Bus bus address was malformed.

◆ DBUSCXX_ERROR_DISCONNECTED

#define DBUSCXX_ERROR_DISCONNECTED   "org.freedesktop.DBus.Error.Disconnected"

The connection is disconnected and you're trying to use it.

◆ DBUSCXX_ERROR_FAILED

#define DBUSCXX_ERROR_FAILED   "org.freedesktop.DBus.Error.Failed"

A generic error; "something went wrong" - see the error message for more.

◆ DBUSCXX_ERROR_FILE_EXISTS

#define DBUSCXX_ERROR_FILE_EXISTS   "org.freedesktop.DBus.Error.FileExists"

Existing file and the operation you're using does not silently overwrite.

◆ DBUSCXX_ERROR_FILE_NOT_FOUND

#define DBUSCXX_ERROR_FILE_NOT_FOUND   "org.freedesktop.DBus.Error.FileNotFound"

Missing file.

◆ DBUSCXX_ERROR_INCONSISTENT_MESSAGE

#define DBUSCXX_ERROR_INCONSISTENT_MESSAGE   "org.freedesktop.DBus.Error.InconsistentMessage"

The message meta data does not match the payload.

e.g. expected number of file descriptors were not sent over the socket this message was received on.

◆ DBUSCXX_ERROR_INTERACTIVE_AUTHORIZATION_REQUIRED

#define DBUSCXX_ERROR_INTERACTIVE_AUTHORIZATION_REQUIRED   "org.freedesktop.DBus.Error.InteractiveAuthorizationRequired"

The message is not allowed without performing interactive authorization, but could have succeeded if an interactive authorization step was allowed.

◆ DBUSCXX_ERROR_INVALID_ARGS

#define DBUSCXX_ERROR_INVALID_ARGS   "org.freedesktop.DBus.Error.InvalidArgs"

Invalid arguments passed to a method call.

◆ DBUSCXX_ERROR_INVALID_FILE_CONTENT

#define DBUSCXX_ERROR_INVALID_FILE_CONTENT   "org.freedesktop.DBus.Error.InvalidFileContent"

A file contains invalid syntax or is otherwise broken.

◆ DBUSCXX_ERROR_INVALID_SIGNATURE

#define DBUSCXX_ERROR_INVALID_SIGNATURE   "org.freedesktop.DBus.Error.InvalidSignature"

A type signature is not valid.

◆ DBUSCXX_ERROR_IO_ERROR

#define DBUSCXX_ERROR_IO_ERROR   "org.freedesktop.DBus.Error.IOError"

Something went wrong reading or writing to a socket, for example.

◆ DBUSCXX_ERROR_LIMITS_EXCEEDED

#define DBUSCXX_ERROR_LIMITS_EXCEEDED   "org.freedesktop.DBus.Error.LimitsExceeded"

Some limited resource is exhausted.

◆ DBUSCXX_ERROR_MATCH_RULE_INVALID

#define DBUSCXX_ERROR_MATCH_RULE_INVALID   "org.freedesktop.DBus.Error.MatchRuleInvalid"

The match rule isn't syntactically valid.

◆ DBUSCXX_ERROR_MATCH_RULE_NOT_FOUND

#define DBUSCXX_ERROR_MATCH_RULE_NOT_FOUND   "org.freedesktop.DBus.Error.MatchRuleNotFound"

Tried to remove or modify a match rule that didn't exist.

◆ DBUSCXX_ERROR_NAME_HAS_NO_OWNER

#define DBUSCXX_ERROR_NAME_HAS_NO_OWNER   "org.freedesktop.DBus.Error.NameHasNoOwner"

The bus name you referenced doesn't exist (i.e.

no application owns it).

◆ DBUSCXX_ERROR_NO_MEMORY

#define DBUSCXX_ERROR_NO_MEMORY   "org.freedesktop.DBus.Error.NoMemory"

There was not enough memory to complete an operation.

◆ DBUSCXX_ERROR_NO_NETWORK

#define DBUSCXX_ERROR_NO_NETWORK   "org.freedesktop.DBus.Error.NoNetwork"

No network access (probably ENETUNREACH on a socket).

◆ DBUSCXX_ERROR_NO_REPLY

#define DBUSCXX_ERROR_NO_REPLY   "org.freedesktop.DBus.Error.NoReply"

No reply to a message expecting one, usually means a timeout occurred.

◆ DBUSCXX_ERROR_NO_SERVER

#define DBUSCXX_ERROR_NO_SERVER   "org.freedesktop.DBus.Error.NoServer"

Unable to connect to server (probably caused by ECONNREFUSED on a socket).

◆ DBUSCXX_ERROR_NOT_SUPPORTED

#define DBUSCXX_ERROR_NOT_SUPPORTED   "org.freedesktop.DBus.Error.NotSupported"

Requested operation isn't supported (like ENOSYS on UNIX).

◆ DBUSCXX_ERROR_OBJECT_PATH_IN_USE

#define DBUSCXX_ERROR_OBJECT_PATH_IN_USE   "org.freedesktop.DBus.Error.ObjectPathInUse"

There's already an object with the requested object path.

◆ DBUSCXX_ERROR_PROPERTY_READ_ONLY

#define DBUSCXX_ERROR_PROPERTY_READ_ONLY   "org.freedesktop.DBus.Error.PropertyReadOnly"

Property you tried to set is read-only.

◆ DBUSCXX_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN

#define DBUSCXX_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN   "org.freedesktop.DBus.Error.SELinuxSecurityContextUnknown"

Asked for SELinux security context and it wasn't available.

◆ DBUSCXX_ERROR_SERVICE_UNKNOWN

#define DBUSCXX_ERROR_SERVICE_UNKNOWN   "org.freedesktop.DBus.Error.ServiceUnknown"

The bus doesn't know how to launch a service to supply the bus name you wanted.

◆ DBUSCXX_ERROR_SPAWN_CHILD_EXITED

#define DBUSCXX_ERROR_SPAWN_CHILD_EXITED   "org.freedesktop.DBus.Error.Spawn.ChildExited"

While starting a new process, the child exited with a status code.

◆ DBUSCXX_ERROR_SPAWN_CHILD_SIGNALED

#define DBUSCXX_ERROR_SPAWN_CHILD_SIGNALED   "org.freedesktop.DBus.Error.Spawn.ChildSignaled"

While starting a new process, the child exited on a signal.

◆ DBUSCXX_ERROR_SPAWN_CONFIG_INVALID

#define DBUSCXX_ERROR_SPAWN_CONFIG_INVALID   "org.freedesktop.DBus.Error.Spawn.ConfigInvalid"

We failed to setup the config parser correctly.

◆ DBUSCXX_ERROR_SPAWN_EXEC_FAILED

#define DBUSCXX_ERROR_SPAWN_EXEC_FAILED   "org.freedesktop.DBus.Error.Spawn.ExecFailed"

While starting a new process, the exec() call failed.

◆ DBUSCXX_ERROR_SPAWN_FAILED

#define DBUSCXX_ERROR_SPAWN_FAILED   "org.freedesktop.DBus.Error.Spawn.Failed"

While starting a new process, something went wrong.

◆ DBUSCXX_ERROR_SPAWN_FILE_INVALID

#define DBUSCXX_ERROR_SPAWN_FILE_INVALID   "org.freedesktop.DBus.Error.Spawn.FileInvalid"

Service file invalid (Name, User or Exec missing).

◆ DBUSCXX_ERROR_SPAWN_FORK_FAILED

#define DBUSCXX_ERROR_SPAWN_FORK_FAILED   "org.freedesktop.DBus.Error.Spawn.ForkFailed"

While starting a new process, the fork() call failed.

◆ DBUSCXX_ERROR_SPAWN_NO_MEMORY

#define DBUSCXX_ERROR_SPAWN_NO_MEMORY   "org.freedesktop.DBus.Error.Spawn.NoMemory"

Tried to get a UNIX process ID and it wasn't available.

◆ DBUSCXX_ERROR_SPAWN_PERMISSIONS_INVALID

#define DBUSCXX_ERROR_SPAWN_PERMISSIONS_INVALID   "org.freedesktop.DBus.Error.Spawn.PermissionsInvalid"

Permissions are incorrect on the setuid helper.

◆ DBUSCXX_ERROR_SPAWN_SERVICE_INVALID

#define DBUSCXX_ERROR_SPAWN_SERVICE_INVALID   "org.freedesktop.DBus.Error.Spawn.ServiceNotValid"

Bus name was not valid.

◆ DBUSCXX_ERROR_SPAWN_SERVICE_NOT_FOUND

#define DBUSCXX_ERROR_SPAWN_SERVICE_NOT_FOUND   "org.freedesktop.DBus.Error.Spawn.ServiceNotFound"

Service file not found in system-services directory.

◆ DBUSCXX_ERROR_SPAWN_SETUP_FAILED

#define DBUSCXX_ERROR_SPAWN_SETUP_FAILED   "org.freedesktop.DBus.Error.Spawn.FailedToSetup"

We failed to setup the environment correctly.

◆ DBUSCXX_ERROR_TIMED_OUT

#define DBUSCXX_ERROR_TIMED_OUT   "org.freedesktop.DBus.Error.TimedOut"

Certain timeout errors, e.g.

while starting a service.

Warning
this is confusingly-named given that DBUSCXX_ERROR_TIMEOUT also exists. We can't fix it for compatibility reasons so just be careful.

◆ DBUSCXX_ERROR_TIMEOUT

#define DBUSCXX_ERROR_TIMEOUT   "org.freedesktop.DBus.Error.Timeout"

Certain timeout errors, possibly ETIMEDOUT on a socket.

Note that DBUSCXX_ERROR_NO_REPLY is used for message reply timeouts.

Warning
this is confusingly-named given that DBUSCXX_ERROR_TIMED_OUT also exists. We can't fix it for compatibility reasons so just be careful.

◆ DBUSCXX_ERROR_UNIX_PROCESS_ID_UNKNOWN

#define DBUSCXX_ERROR_UNIX_PROCESS_ID_UNKNOWN   "org.freedesktop.DBus.Error.UnixProcessIdUnknown"

Tried to get a UNIX process ID and it wasn't available.

◆ DBUSCXX_ERROR_UNKNOWN_INTERFACE

#define DBUSCXX_ERROR_UNKNOWN_INTERFACE   "org.freedesktop.DBus.Error.UnknownInterface"

Interface you invoked a method on isn't known by the object.

◆ DBUSCXX_ERROR_UNKNOWN_METHOD

#define DBUSCXX_ERROR_UNKNOWN_METHOD   "org.freedesktop.DBus.Error.UnknownMethod"

Method name you invoked isn't known by the object you invoked it on.

◆ DBUSCXX_ERROR_UNKNOWN_OBJECT

#define DBUSCXX_ERROR_UNKNOWN_OBJECT   "org.freedesktop.DBus.Error.UnknownObject"

Object you invoked a method on isn't known.

◆ DBUSCXX_ERROR_UNKNOWN_PROPERTY

#define DBUSCXX_ERROR_UNKNOWN_PROPERTY   "org.freedesktop.DBus.Error.UnknownProperty"

Property you tried to access isn't known by the object.