man-pages/man3/sd-bus-errors.3.html
2021-03-31 01:06:50 +01:00

346 lines
10 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of SD-BUS-ERRORS</TITLE>
</HEAD><BODY>
<H1>SD-BUS-ERRORS</H1>
Section: sd-bus-errors (3)<BR>Updated: <BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
sd-bus-errors, SD_BUS_ERROR_FAILED, SD_BUS_ERROR_NO_MEMORY, SD_BUS_ERROR_SERVICE_UNKNOWN, SD_BUS_ERROR_NAME_HAS_NO_OWNER, SD_BUS_ERROR_NO_REPLY, SD_BUS_ERROR_IO_ERROR, SD_BUS_ERROR_BAD_ADDRESS, SD_BUS_ERROR_NOT_SUPPORTED, SD_BUS_ERROR_LIMITS_EXCEEDED, SD_BUS_ERROR_ACCESS_DENIED, SD_BUS_ERROR_AUTH_FAILED, SD_BUS_ERROR_NO_SERVER, SD_BUS_ERROR_TIMEOUT, SD_BUS_ERROR_NO_NETWORK, SD_BUS_ERROR_ADDRESS_IN_USE, SD_BUS_ERROR_DISCONNECTED, SD_BUS_ERROR_INVALID_ARGS, SD_BUS_ERROR_FILE_NOT_FOUND, SD_BUS_ERROR_FILE_EXISTS, SD_BUS_ERROR_UNKNOWN_METHOD, SD_BUS_ERROR_UNKNOWN_OBJECT, SD_BUS_ERROR_UNKNOWN_INTERFACE, SD_BUS_ERROR_UNKNOWN_PROPERTY, SD_BUS_ERROR_PROPERTY_READ_ONLY, SD_BUS_ERROR_UNIX_PROCESS_ID_UNKNOWN, SD_BUS_ERROR_INVALID_SIGNATURE, SD_BUS_ERROR_INCONSISTENT_MESSAGE, SD_BUS_ERROR_MATCH_RULE_NOT_FOUND, SD_BUS_ERROR_MATCH_RULE_INVALID, SD_BUS_ERROR_INTERACTIVE_AUTHORIZATION_REQUIRED - Standard D-Bus error names
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<P>
<B>
</B><PRE>
#include &lt;<A HREF="file:///usr/include/systemd/sd-bus.h">systemd/sd-bus.h</A>&gt;
</PRE>
<P>
<B>
</B><PRE>
#define SD_BUS_ERROR_FAILED &quot;org.freedesktop.DBus.Error.Failed&quot;
#define SD_BUS_ERROR_NO_MEMORY &quot;org.freedesktop.DBus.Error.NoMemory&quot;
#define SD_BUS_ERROR_SERVICE_UNKNOWN &quot;org.freedesktop.DBus.Error.ServiceUnknown&quot;
#define SD_BUS_ERROR_NAME_HAS_NO_OWNER &quot;org.freedesktop.DBus.Error.NameHasNoOwner&quot;
#define SD_BUS_ERROR_NO_REPLY &quot;org.freedesktop.DBus.Error.NoReply&quot;
#define SD_BUS_ERROR_IO_ERROR &quot;org.freedesktop.DBus.Error.IOError&quot;
#define SD_BUS_ERROR_BAD_ADDRESS &quot;org.freedesktop.DBus.Error.BadAddress&quot;
#define SD_BUS_ERROR_NOT_SUPPORTED &quot;org.freedesktop.DBus.Error.NotSupported&quot;
#define SD_BUS_ERROR_LIMITS_EXCEEDED &quot;org.freedesktop.DBus.Error.LimitsExceeded&quot;
#define SD_BUS_ERROR_ACCESS_DENIED &quot;org.freedesktop.DBus.Error.AccessDenied&quot;
#define SD_BUS_ERROR_AUTH_FAILED &quot;org.freedesktop.DBus.Error.AuthFailed&quot;
#define SD_BUS_ERROR_NO_SERVER &quot;org.freedesktop.DBus.Error.NoServer&quot;
#define SD_BUS_ERROR_TIMEOUT &quot;org.freedesktop.DBus.Error.Timeout&quot;
#define SD_BUS_ERROR_NO_NETWORK &quot;org.freedesktop.DBus.Error.NoNetwork&quot;
#define SD_BUS_ERROR_ADDRESS_IN_USE &quot;org.freedesktop.DBus.Error.AddressInUse&quot;
#define SD_BUS_ERROR_DISCONNECTED &quot;org.freedesktop.DBus.Error.Disconnected&quot;
#define SD_BUS_ERROR_INVALID_ARGS &quot;org.freedesktop.DBus.Error.InvalidArgs&quot;
#define SD_BUS_ERROR_FILE_NOT_FOUND &quot;org.freedesktop.DBus.Error.FileNotFound&quot;
#define SD_BUS_ERROR_FILE_EXISTS &quot;org.freedesktop.DBus.Error.FileExists&quot;
#define SD_BUS_ERROR_UNKNOWN_METHOD &quot;org.freedesktop.DBus.Error.UnknownMethod&quot;
#define SD_BUS_ERROR_UNKNOWN_OBJECT &quot;org.freedesktop.DBus.Error.UnknownObject&quot;
#define SD_BUS_ERROR_UNKNOWN_INTERFACE &quot;org.freedesktop.DBus.Error.UnknownInterface&quot;
#define SD_BUS_ERROR_UNKNOWN_PROPERTY &quot;org.freedesktop.DBus.Error.UnknownProperty&quot;
#define SD_BUS_ERROR_PROPERTY_READ_ONLY &quot;org.freedesktop.DBus.Error.PropertyReadOnly&quot;
#define SD_BUS_ERROR_UNIX_PROCESS_ID_UNKNOWN &quot;org.freedesktop.DBus.Error.UnixProcessIdUnknown&quot;
#define SD_BUS_ERROR_INVALID_SIGNATURE &quot;org.freedesktop.DBus.Error.InvalidSignature&quot;
#define SD_BUS_ERROR_INCONSISTENT_MESSAGE &quot;org.freedesktop.DBus.Error.InconsistentMessage&quot;
#define SD_BUS_ERROR_MATCH_RULE_NOT_FOUND &quot;org.freedesktop.DBus.Error.MatchRuleNotFound&quot;
#define SD_BUS_ERROR_MATCH_RULE_INVALID &quot;org.freedesktop.DBus.Error.MatchRuleInvalid&quot;
#define SD_BUS_ERROR_INTERACTIVE_AUTHORIZATION_REQUIRED \
&quot;org.freedesktop.DBus.Error.InteractiveAuthorizationRequired&quot;
</PRE>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
In addition to the error names user programs define, D-Bus knows a number of generic, standardized error names that are listed below.
<P>
In addition to this list, in sd-bus, the special error namespace
&quot;System.Error.&quot;
is used to map arbitrary Linux system errors (as defined by
<B><A HREF="/cgi-bin/man/man2html?3+errno">errno</A></B>(3)) to D-Bus errors and back. For example, the error
<B>EUCLEAN</B>
is mapped to
&quot;System.Error.EUCLEAN&quot;
and back.
<P>
<B>SD_BUS_ERROR_FAILED</B>
<DL COMPACT><DT id="1"><DD>
A generic error indication. See the error message for further details. This error name should be avoided, in favor of a more expressive error name.
</DL>
<P>
<B>SD_BUS_ERROR_NO_MEMORY</B>
<DL COMPACT><DT id="2"><DD>
A memory allocation failed, and the requested operation could not be completed.
</DL>
<P>
<B>SD_BUS_ERROR_SERVICE_UNKNOWN</B>
<DL COMPACT><DT id="3"><DD>
The contacted bus service is unknown and cannot be activated.
</DL>
<P>
<B>SD_BUS_ERROR_NAME_HAS_NO_OWNER</B>
<DL COMPACT><DT id="4"><DD>
The specified bus service name currently has no owner.
</DL>
<P>
<B>SD_BUS_ERROR_NO_REPLY</B>
<DL COMPACT><DT id="5"><DD>
A message did not receive a reply. This error is usually generated after a timeout.
</DL>
<P>
<B>SD_BUS_ERROR_IO_ERROR</B>
<DL COMPACT><DT id="6"><DD>
Generic input/output error, for example when accessing a socket or other I/O context.
</DL>
<P>
<B>SD_BUS_ERROR_BAD_ADDRESS</B>
<DL COMPACT><DT id="7"><DD>
The specified D-Bus bus address string is malformed.
</DL>
<P>
<B>SD_BUS_ERROR_NOT_SUPPORTED</B>
<DL COMPACT><DT id="8"><DD>
The requested operation is not supported on the local system.
</DL>
<P>
<B>SD_BUS_ERROR_LIMITS_EXCEEDED</B>
<DL COMPACT><DT id="9"><DD>
Some limited resource has been exhausted.
</DL>
<P>
<B>SD_BUS_ERROR_ACCESS_DENIED</B>
<DL COMPACT><DT id="10"><DD>
Access to a resource has been denied due to security restrictions.
</DL>
<P>
<B>SD_BUS_ERROR_AUTH_FAILED</B>
<DL COMPACT><DT id="11"><DD>
Authentication did not complete successfully.
</DL>
<P>
<B>SD_BUS_ERROR_NO_SERVER</B>
<DL COMPACT><DT id="12"><DD>
Unable to connect to the specified server.
</DL>
<P>
<B>SD_BUS_ERROR_TIMEOUT</B>
<DL COMPACT><DT id="13"><DD>
An operation timed out. Note that method calls which timeout generate a
<B>SD_BUS_ERROR_NO_REPLY</B>.
</DL>
<P>
<B>SD_BUS_ERROR_NO_NETWORK</B>
<DL COMPACT><DT id="14"><DD>
No network available to execute requested network operation on.
</DL>
<P>
<B>SD_BUS_ERROR_ADDRESS_IN_USE</B>
<DL COMPACT><DT id="15"><DD>
The specified network address is already being listened on.
</DL>
<P>
<B>SD_BUS_ERROR_DISCONNECTED</B>
<DL COMPACT><DT id="16"><DD>
The connection has been terminated.
</DL>
<P>
<B>SD_BUS_ERROR_INVALID_ARGS</B>
<DL COMPACT><DT id="17"><DD>
One or more invalid arguments have been passed.
</DL>
<P>
<B>SD_BUS_ERROR_FILE_NOT_FOUND</B>
<DL COMPACT><DT id="18"><DD>
The requested file could not be found.
</DL>
<P>
<B>SD_BUS_ERROR_FILE_EXISTS</B>
<DL COMPACT><DT id="19"><DD>
The requested file already exists.
</DL>
<P>
<B>SD_BUS_ERROR_UNKNOWN_METHOD</B>
<DL COMPACT><DT id="20"><DD>
The requested method does not exist in the selected interface.
</DL>
<P>
<B>SD_BUS_ERROR_UNKNOWN_OBJECT</B>
<DL COMPACT><DT id="21"><DD>
The requested object does not exist in the selected service.
</DL>
<P>
<B>SD_BUS_ERROR_UNKNOWN_INTERFACE</B>
<DL COMPACT><DT id="22"><DD>
The requested interface does not exist on the selected object.
</DL>
<P>
<B>SD_BUS_ERROR_UNKNOWN_PROPERTY</B>
<DL COMPACT><DT id="23"><DD>
The requested property does not exist in the selected interface.
</DL>
<P>
<B>SD_BUS_ERROR_PROPERTY_READ_ONLY</B>
<DL COMPACT><DT id="24"><DD>
A write operation was requested on a read-only property.
</DL>
<P>
<B>SD_BUS_ERROR_UNIX_PROCESS_ID_UNKNOWN</B>
<DL COMPACT><DT id="25"><DD>
The requested PID is not known.
</DL>
<P>
<B>SD_BUS_ERROR_INVALID_SIGNATURE</B>
<DL COMPACT><DT id="26"><DD>
The specified message signature is not valid.
</DL>
<P>
<B>SD_BUS_ERROR_INCONSISTENT_MESSAGE</B>
<DL COMPACT><DT id="27"><DD>
The passed message does not validate correctly.
</DL>
<P>
<B>SD_BUS_ERROR_MATCH_RULE_NOT_FOUND</B>
<DL COMPACT><DT id="28"><DD>
The specified match rule does not exist.
</DL>
<P>
<B>SD_BUS_ERROR_MATCH_RULE_INVALID</B>
<DL COMPACT><DT id="29"><DD>
The specified match rule is invalid.
</DL>
<P>
<B>SD_BUS_ERROR_INTERACTIVE_AUTHORIZATION_REQUIRED</B>
<DL COMPACT><DT id="30"><DD>
Access to the requested operation is not permitted. However, it might be available after interactive authentication. This is usually returned by method calls supporting a framework for additional interactive authorization, when interactive authorization was not enabled with the
<B><A HREF="/cgi-bin/man/man2html?3+sd_bus_message_set_allow_interactive_authorization">sd_bus_message_set_allow_interactive_authorization</A></B>(3)
for the method call message.
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>NOTES</H2>
<P>
These APIs are implemented as a shared library, which can be compiled and linked to with the
<B>libsystemd</B>&nbsp;<B><A HREF="/cgi-bin/man/man2html?1+pkg-config">pkg-config</A></B>(1)
file.
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>
<P>
<B><A HREF="/cgi-bin/man/man2html?1+systemd">systemd</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?3+sd-bus">sd-bus</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?3+sd_bus_error">sd_bus_error</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?3+sd_bus_message_set_allow_interactive_authorization">sd_bus_message_set_allow_interactive_authorization</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?3+errno">errno</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?3+strerror">strerror</A></B>(3)
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="31"><A HREF="#lbAB">NAME</A><DD>
<DT id="32"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="33"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="34"><A HREF="#lbAE">NOTES</A><DD>
<DT id="35"><A HREF="#lbAF">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:54 GMT, March 31, 2021
</BODY>
</HTML>