On 02/06/2014 17:44, Florent Georges wrote: > Should not instead the MarkLogic errors be thrown using each its own > code? For instance in the namespace http://marklogic.com/xdmp/error, > already existing, by having a mapping like: > > XDMP-INVZIP -> error:invzip > > allowing to use: > > try { > ... > } > catch error:invzip { > ... > } > > instead of: > > try { > ... > } > catch fn:FOER0000 { (: catch all non-declared errors :) > if ( $err:additional/error:error/error:code eq 'XDMP-INVZIP' ) then > ... > else > xdmp:rethrow() > }
I agree that would be nicer - I'll add an RFE for it. John -- John Snelson, Lead Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
