public class ErrorCounter extends Object implements ParseErrorHandler
| Constructor and Description | 
|---|
ErrorCounter()
Constructs an ErrorCounter without knowledge of the HQL, meaning that generated QueryException
 instances *will not* contain the HQL (and will need to be wrapped at a higher level in another
 QueryException). 
 | 
ErrorCounter(String hql)
Constructs an ErrorCounter with knowledge of the HQL, meaning that generated QueryException
 instances *will* contain the HQL. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getErrorCount()  | 
void | 
reportError(antlr.RecognitionException e)  | 
void | 
reportError(String message)  | 
void | 
reportWarning(String message)  | 
void | 
throwQueryException()  | 
public ErrorCounter()
public ErrorCounter(String hql)
public void reportError(antlr.RecognitionException e)
reportError in interface ErrorReporterpublic void reportError(String message)
reportError in interface ErrorReporterpublic int getErrorCount()
getErrorCount in interface ParseErrorHandlerpublic void reportWarning(String message)
reportWarning in interface ErrorReporterpublic void throwQueryException()
                         throws QueryException
throwQueryException in interface ParseErrorHandlerQueryExceptionCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.