MarkLogic Server 11.0 Product Documentation
xdmp.rethrow

xdmp.rethrow() as null

Summary

Within the catch section of a try-catch expression, re-throw the currently caught error.

Example

declareUpdate();
try {
  xdmp.documentDelete("/some-uri") }
catch (e) {if (e.name =="XDMP-DOCNOTFOUND") {  }
           else {xdmp.rethrow()}}

Powered by MarkLogic Server | Terms of Use | Privacy Policy