A RESTful browser for eXist Java-Based Function Modules


http://exist-db.org/xquery/util
A module for various utility extension functions.

util:catch($java-classnames as xs:string+, $try-code-blocks as item()*, $catch-code-blocks as item()*) item()*
This function corresponds to a try-catch statement in Java. The code block in $try-code-blocks will be put inside a try-catch statement. If an exception is thrown while executing $try-code-blocks, the function checks the name of the exception and calls $catch-code-blocks if it matches one of the fully qualified Java class names specified in $java-classnames. A value of "*" in $java-classnames will catch all java exceptions
$java-classnamesThe list of one or more fully qualified Java class names. An entry of '*' will catch all java exceptions.
$try-code-blocksThe code blocks that will be put inside of a the try part of the try-catch statement.
$catch-code-blocksThe code blocks that will be will called if the catch matches one of the $java-classnames

Returns the results from the try-catch
Return to list of all modules