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

RE: [XQuery] Error handling

From: Andrey Fomichev <fomichev@ispras.ru>
Date: Thu, 18 Nov 2004 20:53:56 +0300
To: "Michael Kay" <mhk@mhk.me.uk>, <public-qt-comments@w3.org>
Cc: "'Kanad Dixit'" <kanad_dixit@persistent.co.in>, "Andrey Fomichev" <fomichev@ispras.ru>
Message-ID: <KMEKJEPBHIGAGHJFMEHGCEHOCKAA.fomichev@ispras.ru>


> > 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.

Sounds reasonable. Thank you for the explanation. I think it will be
good if the specification encourages users to define their own namespaces.

Andrey
Received on Thursday, 18 November 2004 17:54:00 GMT

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