org.hibernate.hql.ast

Class ErrorCounter

Implemented Interfaces:
ErrorReporter, ParseErrorHandler

public class ErrorCounter
extends java.lang.Object
implements ParseErrorHandler

An error handler that counts parsing errors and warnings.

Method Summary

int
getErrorCount()
void
reportError(RecognitionException e)
void
reportError(String message)
void
reportWarning(String message)
void
throwQueryException()

Method Details

getErrorCount

public int getErrorCount()
Specified by:
getErrorCount in interface ParseErrorHandler

reportError

public void reportError(RecognitionException e)
Specified by:
reportError in interface ErrorReporter

reportError

public void reportError(String message)
Specified by:
reportError in interface ErrorReporter

reportWarning

public void reportWarning(String message)
Specified by:
reportWarning in interface ErrorReporter

throwQueryException

public void throwQueryException()
            throws QueryException
Specified by:
throwQueryException in interface ParseErrorHandler