* Map an exception thrown by the ANTLR generated code to an
* EJBQLException.
*/
//gf1166 Wrap ANTLRException inside EJBQLException
protected EJBQLException handleANTLRException(ANTLRException ex) {
EJBQLException result = null;
if (ex instanceof MismatchedCharException) {
MismatchedCharException mismatched = (MismatchedCharException)ex;
if (mismatched.foundChar == EOF_CHAR) {
result = EJBQLException.unexpectedEOF(getQueryInfo(),
mismatched.getLine(), mismatched.getColumn(), ex);