W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2003

F+O: error() function

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Tue, 23 Sep 2003 19:01:47 +0200
Message-ID: <DFF2AC9E3583D511A21F0008C7E62106073DD143@daemsg02.software-ag.de>
To: public-qt-comments@w3.org
At some stage we appear to have switched from allowing any item as an
argument to the error() function, to allowing only a QName.

Using QNames is nice for big production applications like docbook that need
to manage their error handling and localize their error messages. For
one-off ad-hoc queries, it's not appropriate: in such cases, you want to
output the error message directly as a string. Enabling i18n, for users who
want it, is reasonable; requiring programmers who are probably the sole
readers of their own messages to set up separate message files is

The error() function should allow a string as an argument.

Otherwise, expect to see lots of error messages disguised as names:


Michael Kay
Software AG
Received on Tuesday, 23 September 2003 13:01:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:49 UTC