try {
return (JPQLNode) new JPQL(jpql).parseQuery();
} catch (Error e) {
// special handling for Error subclasses, which the
// parser may sometimes (unfortunately) throw
throw new UserException(_loc.get("parse-error",
new Object[]{ e.toString(), jpql }));
} catch (ParseException e) {
throw new UserException(_loc.get("parse-error",
new Object[]{ e.toString(), jpql }), e);
}
}