Methods Summary |
---|
public int | getErrorCount()
return errorList.size();
|
private java.lang.String | getErrorString()
StringBuffer buf = new StringBuffer();
for ( Iterator iterator = errorList.iterator(); iterator.hasNext(); ) {
buf.append( ( String ) iterator.next() );
if ( iterator.hasNext() ) buf.append( "\n" );
}
return buf.toString();
|
public void | reportError(antlr.RecognitionException e)
reportError( e.toString() );
recognitionExceptions.add( e );
if ( log.isDebugEnabled() ) {
log.debug( e, e );
}
|
public void | reportError(java.lang.String message)
hqlLog.error( message );
errorList.add( message );
|
public void | reportWarning(java.lang.String message)
hqlLog.debug( message );
warningList.add( message );
|
public void | throwQueryException()
if ( getErrorCount() > 0 ) {
if ( recognitionExceptions.size() > 0 ) {
throw QuerySyntaxException.convert( ( RecognitionException ) recognitionExceptions.get( 0 ) );
}
else {
throw new QueryException( getErrorString() );
}
}
else {
// all clear
if ( log.isDebugEnabled() ) {
log.debug( "throwQueryException() : no errors" );
}
}
|