From cd279fd3c57bf60da4436c0fdc15e33735207273 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 17 May 2011 17:06:30 +0100 Subject: [PATCH 5/9] Describe conventional naming of errors --- doc/dbus-specification.xml | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/doc/dbus-specification.xml b/doc/dbus-specification.xml index 6d2b26a..20b0d48 100644 --- a/doc/dbus-specification.xml +++ b/doc/dbus-specification.xml @@ -1304,6 +1304,17 @@ Error names have the same restrictions as interface names. + + + Error names have the same naming conventions as interface + names, and often contain .Error.; for instance, + the owner of example.com might define the + errors com.example.MusicPlayer.Error.FileNotFound + and com.example.MusicPlayer.Error.OutOfMemory. + The errors defined by D-Bus itself, such as + org.freedesktop.DBus.Error.Failed, follow a + similar pattern. + -- 1.7.5.1