fn functions (Error and Trace)
The error and trace built-in functions are XQuery functions defined for throwing errors from XQuery programs and debug tracing. They are defined in XQuery 1.0 and XPath 2.0 Functions and Operators.
The error and trace built-in functions use the
prefix, which is predefined in the server. Also, the
prefix is the default prefix for function calls if none is specified.
|fn:error||[1.0 and 1.0-ml only, 0.9-ml has a different signature] Throw the given error.|
|fn:trace||Return the input $value unchanged and, if $label is the name of an enabled server event, emit that server event to the server log file (ErrorLog.txt) with $value as its data.|