Re: Error naming convention on dbus

Nyirő Gergő <gergo-VbCGMPl49+BBDLzU/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <CAOch2Uc-u6ysneEn-gOeLwYWj0MwORuLrag09rKm1X0JyD0=+w@mail.gmail.com>
Thanks both of you for the quick help.

I would like to ask an another advice regarding to the error naming
convention.

I have a service which has the well known name `org.configd.Example` where
the `/org/configd/Example` object implements the
`org.freedesktop.DBus.Properties` interface. I extended the
`org.freedesktop.DBus.Properties.Set` method with some validation (maximum
value for an int32 property) and I would like to respond with an error if
the validation fails. Which would be a better error name:
a) `org.freedesktop.DBus.Properties.Error.ValidationError`
b) `org.configd.Error.ValidationError`
c) replace the standard `org.freedesktop.DBus.Properties.Set` method with a
custom interface + method for validation

Thanks for you help in advance,
Gergo

_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.