return new JXPathExpression(
factory,
new JXPathCompiledExpression(expression, e));
} catch (TokenMgrError tme) {
// if parsing failed then throw an expression exception
throw new ExpressionException(tme);
} catch (JXPathException e) {
// if parsing failed then throw an expression exception
throw new ExpressionException(e);
} catch (ParseException e) {
LOGGER.error("exception-during-expression-parse", expression, e);
throw new ExpressionException(e);
}
}