org.hibernate.hql.ast
Class ErrorCounter
java.lang.Object
org.hibernate.hql.ast.ErrorCounter
- All Implemented Interfaces:
- ErrorReporter, ParseErrorHandler
public class ErrorCounter
- extends Object
- implements ParseErrorHandler
An error handler that counts parsing errors and warnings.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorCounter
public ErrorCounter()
reportError
public void reportError(antlr.RecognitionException e)
- Specified by:
reportError
in interface ErrorReporter
reportError
public void reportError(String message)
- Specified by:
reportError
in interface ErrorReporter
getErrorCount
public int getErrorCount()
- Specified by:
getErrorCount
in interface ParseErrorHandler
reportWarning
public void reportWarning(String message)
- Specified by:
reportWarning
in interface ErrorReporter
throwQueryException
public void throwQueryException()
throws QueryException
- Specified by:
throwQueryException
in interface ParseErrorHandler
- Throws:
QueryException