public class ErrorCounter extends java.lang.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(java.lang.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(java.lang.String message) |
void |
reportWarning(java.lang.String message) |
void |
throwQueryException() |
public ErrorCounter()
public ErrorCounter(java.lang.String hql)
public void reportError(antlr.RecognitionException e)
reportError in interface ErrorReporterpublic void reportError(java.lang.String message)
reportError in interface ErrorReporterpublic int getErrorCount()
getErrorCount in interface ParseErrorHandlerpublic void reportWarning(java.lang.String message)
reportWarning in interface ErrorReporterpublic void throwQueryException()
throws QueryException
throwQueryException in interface ParseErrorHandlerQueryExceptionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.