Package org.hibernate.hql.ast
Class ErrorCounter
java.lang.Object
org.hibernate.hql.ast.ErrorCounter
- All Implemented Interfaces:
ErrorReporter,ParseErrorHandler
An error handler that counts parsing errors and warnings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidvoidreportError(String message) voidreportWarning(String message) void
-
Constructor Details
-
ErrorCounter
public ErrorCounter()
-
-
Method Details
-
reportError
- Specified by:
reportErrorin interfaceErrorReporter
-
reportError
- Specified by:
reportErrorin interfaceErrorReporter
-
getErrorCount
public int getErrorCount()- Specified by:
getErrorCountin interfaceParseErrorHandler
-
reportWarning
- Specified by:
reportWarningin interfaceErrorReporter
-
throwQueryException
- Specified by:
throwQueryExceptionin interfaceParseErrorHandler- Throws:
QueryException
-