<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.rethrow.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.rethrow</api:function-name><api:suggest>xdmp.rethrow</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>rethrow</api:suggest><api:function-link mode="xquery" fullname="xdmp:rethrow">/apidoc/8.0/xdmp:rethrow.xml</api:function-link><api:function mode="javascript" name="rethrow" type="builtin" lib="xdmp" category="Extension" subcategory="MarkLogic Server" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.rethrow"><api:summary>
  Within the catch section of a try-catch expression,
  re-throw the currently caught error.
</api:summary><api:params/><api:return>null</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
declareUpdate();
try {
  xdmp.documentDelete("/some-uri") }
catch (e) {if (e.name =="XDMP-DOCNOTFOUND") {  }
           else {xdmp.rethrow()}}

</pre></api:example></api:function></api:function-page>