public class ErrorCounter extends Object implements ParseErrorHandler
Constructor and Description |
---|
ErrorCounter()
Constructs an ErrorCounter without knowledge of the HQL, meaning that generated QueryException
instances *will not* contain the HQL (and will need to be wrapped at a higher level in another
QueryException).
|
ErrorCounter(String hql)
Constructs an ErrorCounter with knowledge of the HQL, meaning that generated QueryException
instances *will* contain the HQL.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCount() |
void |
reportError(antlr.RecognitionException e) |
void |
reportError(String message) |
void |
reportWarning(String message) |
void |
throwQueryException() |
public ErrorCounter()
public ErrorCounter(String hql)
public void reportError(antlr.RecognitionException e)
reportError
in interface ErrorReporter
public void reportError(String message)
reportError
in interface ErrorReporter
public int getErrorCount()
getErrorCount
in interface ParseErrorHandler
public void reportWarning(String message)
reportWarning
in interface ErrorReporter
public void throwQueryException() throws QueryException
throwQueryException
in interface ParseErrorHandler
QueryException
Copyright © 2016 JBoss by Red Hat. All rights reserved.