Loading TOC...

MarkLogic 12 EA 2 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()}}

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.