HHH-11568 - Wrap antlr-parser exceptions as QueryException.

This commit is contained in:
Chris Cranford 2017-02-28 00:16:53 -05:00
parent 4bd5c8a730
commit 549e712f1f
1 changed files with 5 additions and 0 deletions

View File

@ -232,6 +232,11 @@ public class QueryTranslatorImpl implements FilterTranslator {
LOG.trace( "Converted antlr.ANTLRException", e );
throw new QueryException( e.getMessage(), hql );
}
catch ( IllegalArgumentException e ) {
// translate this into QueryException
LOG.trace( "Converted IllegalArgumentException", e );
throw new QueryException( e.getMessage(), hql );
}
//only needed during compilation phase...
this.enabledFilters = null;