MarkLogic 9 Product Documentation
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 fn namespace prefix, which is predefined in the server. Also, the fn prefix is the default prefix for function calls if none is specified.

2 functions
Function name Description
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, log event to the App Server log file <install_dir>/Logs/<port>_ErrorLog.txt; where <install_dir> is the MarkLogic install directory, and <port> is the port number of the current App Server or "TaskServer" if the current request is running on the Task Server.
Powered by MarkLogic Server | Terms of Use | Privacy Policy