HHH-11568 - Wrap antlr-parser exceptions as QueryException.
This commit is contained in:
parent
4bd5c8a730
commit
549e712f1f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue