org.hibernate.hql.ast
Class ErrorCounter
java.lang.Object
   org.hibernate.hql.ast.ErrorCounter
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:
- reportErrorin interface- ErrorReporter
 
- 
 
reportError
public void reportError(String message)
- 
- Specified by:
- reportErrorin interface- ErrorReporter
 
- 
 
getErrorCount
public int getErrorCount()
- 
- Specified by:
- getErrorCountin interface- ParseErrorHandler
 
- 
 
reportWarning
public void reportWarning(String message)
- 
- Specified by:
- reportWarningin interface- ErrorReporter
 
- 
 
throwQueryException
public void throwQueryException()
                         throws QueryException
- 
- Specified by:
- throwQueryExceptionin interface- ParseErrorHandler
 
- 
- Throws:
- QueryException
 
Copyright © 2001-2010 Red Hat, Inc.  All Rights Reserved.