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

RE: [XQuery]&[F&O] fn:error: function parameters

From: Michael Kay <mhk@mhk.me.uk>
Date: Thu, 30 Sep 2004 17:01:27 +0100
To: "'Kanad Dixit'" <kanad_dixit@persistent.co.in>, <public-qt-comments@w3.org>
Message-ID: <E1CD3Nb-0007SZ-73@frink.w3.org>
I'm not sure what product you are referring to here.
Saxon 8.1 still implements the November 2003 version of the error()
function, which takes a single argument of type item(): see
Michael Kay

Hi Michael,
I am wondering whether you would really achieve the desired results.
>error("No input")
when you give an input in XQuery as fn:error("No Input")
At my end I am getting the exception thrown as 
javax.ejb.EJBException: System error: {err}XP0004: Invalid static type:

This is not as per you mention in your mail. What could be the reason for
the difference in nature of error thrown? 

However I too agree that it would be much better to change the
'Unidentified Error' to  'User Error'. 




>A mischievous note: it is therefore an error to call the function with a
>single string argument, e.g.

>error("No input")

>But since it's implementation-defined what the error message for this error
>is, an implementation that outputs "Error: No input" would be entirely
Received on Thursday, 30 September 2004 16:02:03 UTC

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