xdmp.rethrow() as null
Within the catch section of a try-catch expression, re-throw the currently caught error.
declareUpdate(); try { xdmp.documentDelete("/some-uri") } catch (e) {if (e.name =="XDMP-DOCNOTFOUND") { } else {xdmp.rethrow()}}
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.