<div dir="ltr">Hello Gergo,<div>D-Bus specification: <a href="https://dbus.freedesktop.org/doc/dbus-specification.html#auth-command-future">https://dbus.freedesktop.org/doc/dbus-specification.html#auth-command-future</a> </div><div>contains subsection about errors's name:</div><div><br></div><div><div class="gmail-titlepage" style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><b>Error names</b><br>Error names have the same restrictions as interface names.<br>Error names have the same naming conventions as interface names, and often contain <code class="gmail-literal">.Error.</code>; for instance, the owner of <code class="gmail-literal"><a href="http://example.com">example.com</a></code> might define the errors <code class="gmail-literal">com.example.MusicPlayer1.Error.FileNotFound</code> and <code class="gmail-literal">com.example.MusicPlayer1.Error.OutOfMemory</code>. The errors defined by D-Bus itself, such as <code class="gmail-literal">org.freedesktop.DBus.Error.Failed</code>, follow a similar pattern.</blockquote></div><div><br></div><div>Best regards,</div></div><div>Igor</div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br> <table style="border-top:1px solid #d3d4de">
        <tr>
      <td style="width:55px;padding-top:18px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width:470px;padding-top:17px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Без вирусов. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avast.ru</a>                 </td>
        </tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">сб, 6 февр. 2021 г. в 15:20, Zeeshan Ali <<a href="mailto:zeeshanak@gnome.org">zeeshanak@gnome.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
On Sat, 6 Feb 2021 at 11:45, Nyirő Gergő <<a href="mailto:gergo@nyiro.name" target="_blank">gergo@nyiro.name</a>> wrote:<br>
><br>
> Dear list,<br>
><br>
> I would like to ask about the naming convention of dbus errors.<br>
><br>
> I saw the following pattern in dbus libraries: if the response  to the<br>
> `Set` method of the `org.freedesktop.DBus.Properties` interface is an<br>
> error then the name of the error is prefixed with<br>
> `org.freedesktop.DBus.Properties.Error.`.<br>
><br>
> Is it right that the name of the error should correlate with the<br>
> invoked interface (<interface-name> + ".Error." + <error-type>)?<br>
><br>
> Is there any official rule about the error names?<br>
> Is there a list of common errors somewhere?<br>
<br>
You can find the official rules and recommended conventions about<br>
error names here:<br>
<a href="https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-error" rel="noreferrer" target="_blank">https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-error</a><br>
<br>
> At first glance it seems that the instrospection data does not contain<br>
> the possible errors. Is it right or they can be inculded somehow?<br>
<br>
Not officially, no but I recall there was a Telepathy extension<br>
standard for that, although I can't seem to find it right now.<br>
<br>
-- <br>
Regards,<br>
<br>
Zeeshan Ali<br>
_______________________________________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org" target="_blank">dbus@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/dbus" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/dbus</a><br>
</blockquote></div>