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()}}