站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

ErrorCounter (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.hql.ast
Class ErrorCounter

java.lang.Object
  extended byorg.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.


Constructor Summary
ErrorCounter()
           
 
Method Summary
 int getErrorCount()
           
 void reportError(antlr.RecognitionException e)
           
 void reportError(String message)
           
 void reportWarning(String message)
           
 void throwQueryException()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorCounter

public ErrorCounter()
Method Detail

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