public class StdErrorQueue extends AbstractErrorQueue
StdErrorQueue
handles outputting error messages.errorCount, flushed, limit, name
Constructor and Description |
---|
StdErrorQueue(java.io.PrintStream err,
int limit,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
displayError(ErrorInfo e) |
void |
flush()
This method is called to flush the error queue.
|
protected java.io.Reader |
reader(Position pos) |
protected void |
showErrorIndicator(Position pos,
int lineNum,
java.lang.String s) |
protected void |
tooManyErrors(ErrorInfo lastError)
This method is called when we have had too many errors.
|
enqueue, enqueue, enqueue, errorCount, hasErrors
public StdErrorQueue(java.io.PrintStream err, int limit, java.lang.String name)
public void displayError(ErrorInfo e)
displayError
in class AbstractErrorQueue
protected void tooManyErrors(ErrorInfo lastError)
AbstractErrorQueue
tooManyErrors
in class AbstractErrorQueue
lastError
- the last error that pushed us over the limitprotected java.io.Reader reader(Position pos) throws java.io.IOException
java.io.IOException
protected void showErrorIndicator(Position pos, int lineNum, java.lang.String s)
public void flush()
AbstractErrorQueue
flush
in interface ErrorQueue
flush
in class AbstractErrorQueue