Difference between revisions of "XQuery 3.0"
Jump to navigation
Jump to search
(Created page with "==Try/Catch== The well-known try/catch construct can be used in BaseX to intercept run-time errors. This feature will also be part of the new [http://www.w3.org/TR/xquery-11/#id...") |
|||
Line 1: | Line 1: | ||
+ | This article summarizes the most important features of the upcoming [http://www.w3.org/TR/xquery-30/ Version 3.0] of the XQuery language that have already been implemented in BaseX. | ||
+ | |||
==Try/Catch== | ==Try/Catch== | ||
Revision as of 14:04, 12 January 2011
This article summarizes the most important features of the upcoming Version 3.0 of the XQuery language that have already been implemented in BaseX.
Try/Catch
The well-known try/catch construct can be used in BaseX to intercept run-time errors. This feature will also be part of the new XQuery 3.0 Recommendation.
Example:
try { 1 + '2' } catch *($code, $desc) { concat('Error [', $code, ']: ', $desc) }
Result: Error [XPTY0004]: '+' operator: number expected, string found.