Changes

Jump to navigation Jump to search
13 bytes added ,  00:20, 26 May 2014
==XQuery Errors==
XQuery runtime errors can be processed via ''error annotations''. One function can only have one error annotation, and a single argument must be supplied, which represents the error codes to be caught{{Mark|Updated with Version 7.9:}}
Since {{Version|7XQuery runtime errors can be processed via ''error annotations''.9}}Error annotations have one or more arguments, which represent the error codes to be caught.The codes equal the supported notations have been aligned with names of the XQuery 3.0 [[XQuery 3.0#Try.2FCatch|try/catch]] construct of XQuery 3.0:
{| class="wikitable"
Codes with a higher priority will be preferred. An error will be raised if two functions with conflicting codes and the same priority are supplied.
All error codes of a single function must have the same priority.
Similar to try/catch, the pre-defined variables ({{Code|code}}, {{Code|description}}, {{Code|value}}, {{Code|module}}, {{Code|line-number}}, {{Code|column-number}}, {{Code|additional}}) can be bound to variables via ''error parameter annotations'', which are specified the same way as [[#Query Parameters|query parameters]].
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu