Hello all,
the error interception functions are pretty useful. My "feature
request" here is whether it could be possible to overcome:
"XQuery runtime errors can be processed via error annotations.
A single argument must be supplied, which represents the QName of
the error to be caught. A wildcard *
may be specified
to catch all possible errors. A function can only have a single
error annotation:"
It could be useful to have at least a second level of wildcards on
the QName prefix in order to be able to differentiate behaviours
according to categories of errors.
%rest:error
(
"ns1:*"
)
A more fine grained filtering (i.e. comma separated list of
exception codes) could also be useful but since I don't understand
the difficulty of building this into the code I won't ask too much.
The only alternative I see at the moment is a single function with a
switch or a lot of replicated functions.
What is your opinion on this?
Thanks and regards,
Marco.