err.setIsTypeError(true);
throw err;
} else { // if (exe instanceof UnsupportedOperationException) {
if (exe.getCause() instanceof XPathException) {
XPathException ec = (XPathException)exe.getCause();
ec.maybeSetLocation(getSourceLocator());
ec.maybeSetContext(context);
throw ec;
} else {
// the namespace axis is not supported for all tree implementations
dynamicError("Axis Expression Error on: " + cName + " " + exe.getMessage(), "XPST0010", context);