Changes

Jump to navigation Jump to search
24 bytes removed ,  19:08, 22 June 2013
XQuery runtime errors can be processed via ''error annotations''. A single argument must be supplied, which represents the QName of the error to be caught. A wildcard {{Code|*}} may be specified to catch all possible errors.
Within the scope of the catch clause of the The XQuery [[XQuery 3.0#Try.2FCatch|try/catch]] construct, assigns error information to a number of pre-defined variables are implicitly declared ({{Code|code}}, {{Code|description}}, {{Code|value}}, {{Code|module}}, {{Code|line-number}}, {{Code|column-number}}, {{Code|additional}}). These variables can be bound to variables via ''error parameter annotations'', which are specified the same way as [[#Query Parameters|query parameters]].
Errors may occur unexpectedly. However, they can also be generated in a query, as the following example shows:
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu