W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2004

RE: [XQuery] Error handling

From: Michael Kay <mhk@mhk.me.uk>
Date: Thu, 18 Nov 2004 12:58:20 -0000
To: "'Andrey Fomichev'" <fomichev@ispras.ru>, <public-qt-comments@w3.org>
Cc: "'Kanad Dixit'" <kanad_dixit@persistent.co.in>
Message-ID: <E1CUlsC-0000Vq-35@frink.w3.org>

> 2. Now XQuery mentions "err" namespace prefix
> (http://www.w3.org/TR/xquery/#id-basics). But this prefix is
>    not predefined like "xml", "xs", "xsi", "fn", "xdt" and 
> "local". Why?
> Does that mean that a XQuery
>    programmer has to define the "err" prefix himself to call fn:error
> function?

The "err" namespace is intended for system-detected errors, not for
user-detected errors. There's no ban on users calling error() with codes in
the "err" namespace, but it's not something I think we should encourage -
users should define their own error codes in their own namespace.

Michael Kay
Received on Thursday, 18 November 2004 12:58:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:37 GMT