Error codes for the G_DBUS_ERROR error domain.
failedA generic error; "something went wrong" - see the error message for more.
no-memoryThere was not enough memory to complete an operation.
service-unknownThe bus doesn’t know how to launch a service to supply the bus name you wanted.
name-has-no-ownerThe bus name you referenced doesn’t exist (i.e. no application owns it).
no-replyNo reply to a message expecting one, usually means a timeout occurred.
io-errorSomething went wrong reading or writing to a socket, for example.
bad-addressA D-Bus bus address was malformed.
not-supportedRequested operation isn’t supported (like ENOSYS on UNIX).
limits-exceededSome limited resource is exhausted.
access-deniedSecurity restrictions don’t allow doing what you’re trying to do.
auth-failedAuthentication didn’t work.
no-serverUnable to connect to server (probably caused by ECONNREFUSED on a socket).
timeoutCertain timeout errors, possibly ETIMEDOUT on a socket. Note that
no-reply is used for message reply timeouts.
Warning: this is confusingly-named given that
timed-out also exists. We can’t fix it for
compatibility reasons so just be careful.
no-networkNo network access (probably ENETUNREACH on a socket).
address-in-useCan’t bind a socket since its address is in use (i.e. EADDRINUSE).
disconnectedThe connection is disconnected and you’re trying to use it.
invalid-argsInvalid arguments passed to a method call.
file-not-foundMissing file.
file-existsExisting file and the operation you’re using does not silently overwrite.
unknown-methodMethod name you invoked isn’t known by the object you invoked it on.
timed-outCertain timeout errors, e.g. while starting a service. Warning: this
is confusingly-named given that timeout also
exists. We can’t fix it for compatibility reasons so just be careful.
match-rule-not-foundTried to remove or modify a match rule that didn’t exist.
match-rule-invalidThe match rule isn’t syntactically valid.
spawn-exec-failedWhile starting a new process, the exec() call failed.
spawn-fork-failedWhile starting a new process, the fork() call failed.
spawn-child-exitedWhile starting a new process, the child exited with a status code.
spawn-child-signaledWhile starting a new process, the child exited on a signal.
spawn-failedWhile starting a new process, something went wrong.
spawn-setup-failedWe failed to setup the environment correctly.
spawn-config-invalidWe failed to setup the config parser correctly.
spawn-service-invalidBus name was not valid.
spawn-service-not-foundService file not found in system-services directory.
spawn-permissions-invalidPermissions are incorrect on the setuid helper.
spawn-file-invalidService file invalid (Name, User or Exec missing).
spawn-no-memoryTried to get a UNIX process ID and it wasn’t available.
unix-process-id-unknownTried to get a UNIX process ID and it wasn’t available.
invalid-signatureA type signature is not valid.
invalid-file-contentA file contains invalid syntax or is otherwise broken.
selinux-security-context-unknownAsked for SELinux security context and it wasn’t available.
adt-audit-data-unknownAsked for ADT audit data and it wasn’t available.
object-path-in-useThere’s already an object with the requested object path.
unknown-objectObject you invoked a method on isn’t known. Since 2.42
unknown-interfaceInterface you invoked a method on isn’t known by the object. Since 2.42
unknown-propertyProperty you tried to access isn’t known by the object. Since 2.42
property-read-onlyProperty you tried to set is read-only. Since 2.42
Creates a D-Bus error name to use for error.
If error matches a registered error (see dbus-error:register-error?), the corresponding D-Bus
error name will be returned.
Otherwise the a name of the form
org.gtk.GDBus.UnmappedGError.Quark._ESCAPED_QUARK_NAME.Code_ERROR_CODE
will be used. This allows other GDBus applications to map the error on
the wire back to a <GError> using
dbus-error:new-for-dbus-error.
This function is typically only used in object mappings to put a
<GError> on the wire. Regular applications
should not use it.
Passed: a <GError>.
an error
Returned: a string.
a D-Bus error name
Gets the D-Bus error name used for error, if any.
This function is guaranteed to return a D-Bus error name for all
<GError>s returned from functions handling
remote method calls (for example, dbus-connection:call-finish) unless dbus-error:strip-remote-error? has already been
used on error.
Passed: a <GError>.
an error
Returned: a string, or #f.
an allocated string, or NULL if the D-Bus error name could not be
found
Checks if error represents an error received via D-Bus from a remote peer.
If so, use dbus-error:get-remote-error to get the name of the
error.
Passed: a <GError>.
an error
Returned: a boolean.
true if error represents an error from a remote peer; false otherwise
Creates a <GError> based on the contents of
dbus-error-name and dbus-error-message.
Errors registered with dbus-error:register-error? will be looked up using
dbus-error-name and if a match is found, the error domain and code
is used. Applications can use dbus-error:get-remote-error to recover
dbus-error-name.
If a match against a registered error is not found and the D-Bus error
name is in a form as returned by dbus-error:encode-gerror the error domain and code
encoded in the name is used to create the
<GError>. Also, dbus-error-name is added
to the error message such that it can be recovered with
dbus-error:get-remote-error.
Otherwise, a <GError> with the error code
Gio.IOErrorEnum.DBUS_ERROR in the
<GIOErrorEnum> error domain is returned. Also,
dbus-error-name is added to the error message such that it can be
recovered with dbus-error:get-remote-error.
In all three cases, dbus-error-name can always be recovered from
the returned <GError> using the
dbus-error:get-remote-error
function (unless dbus-error:strip-remote-error? hasn’t been used on
the returned error).
This function is typically only used in object mappings to prepare
<GError> instances for applications. Regular
applications should not use it.
Returned: an unsigned 32-bit integer.
Creates an association mapping between dbus-error-name and
<GError>s specified by error-domain and
error-code.
This is typically done in the function that returns the
GLib.Quark for an error domain.
Passed: an unsigned 32-bit integer.
a GLib.Quark for an error domain
Passed: a 32-bit integer.
an error code
Passed: a string.
a D-Bus error name
Returned: a boolean.
true if the association was created, false if it already exists
Looks for extra information in the error message used to recover the D-Bus error name and strips it if found.
If stripped, the message field in error will correspond exactly to what was received on the wire.
This is typically used when presenting errors to the end user.
Passed: a <GError>.
an error
Returned: a boolean.
true if information was stripped; false otherwise
Destroys an association previously set up with dbus-error:register-error?.
Passed: an unsigned 32-bit integer.
a GLib.Quark for an error domain
Passed: a 32-bit integer.
an error code
Passed: a string.
a D-Bus error name
Returned: a boolean.
true if the association was destroyed, false if it wasn’t found