XQuery 3.0
Jump to navigation
Jump to search
This article summarizes the most exciting 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 to handle errors at runtime:
Example:
try { 1 + '2' } catch *($code, $desc) { concat('Error [', $code, ']: ', $desc) }
Result: Error [XPTY0004]: '+' operator: number expected, string found.