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

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

From: Kanad Dixit <kanad_dixit@persistent.co.in>
Date: Thu, 30 Sep 2004 21:02:37 +0530
Message-ID: <038801c4a702$b9bb2780$e8052c0a@persistent.co.in>
To: <public-qt-comments@w3.org>
Cc: <mhk@mhk.me.uk>
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: {http://www.w3.org/2001/XMLSchema}string.

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 15:36:17 UTC

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