if ( checkAllUsed )
{
Token t = parser.getNextToken() ;
if ( t.kind != ARQParserTokenManager.EOF )
throw new QueryParseException("Extra tokens beginning \""+t.image+"\" starting line "+t.beginLine+", column "+t.beginColumn,
t.beginLine, t.beginColumn) ;
}
return expr ;
} catch (ParseException ex)
{ throw new QueryParseException(ex.getMessage(),
ex.currentToken.beginLine,
ex.currentToken.beginLine) ;
}
catch (TokenMgrError tErr)
{
throw new QueryParseException(tErr.getMessage(), -1, -1) ;
}
catch (Error err)
{
// The token stream can throw java.lang.Error's
String tmp = err.getMessage() ;
if ( tmp == null )
throw new QueryParseException(err,-1, -1) ;
throw new QueryParseException(tmp,-1, -1) ;
}
}