public class PrintWriterErrorHandler extends Object implements ErrorHandler
| Constructor and Description |
|---|
PrintWriterErrorHandler(PrintWriter dest) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Throws an exception when one of the above methods was called.
|
void |
error(String pos,
GenericException e) |
void |
error(String pos,
String message) |
void |
lexicalError(Position pos) |
protected void |
report(String pos,
String message) |
void |
semanticError(Position pos,
Exception e) |
void |
syntaxError(Position pos,
net.oneandone.sushi.util.IntBitSet shiftable) |
public PrintWriterErrorHandler(PrintWriter dest)
public void lexicalError(Position pos)
lexicalError in interface ErrorHandlerpublic void syntaxError(Position pos, net.oneandone.sushi.util.IntBitSet shiftable)
syntaxError in interface ErrorHandlerpublic void semanticError(Position pos, Exception e)
semanticError in interface ErrorHandlerpublic void error(String pos, GenericException e)
public void close()
throws IOException
ErrorHandlerclose in interface ErrorHandlerIOExceptionCopyright © 1998–2017 1&1. All rights reserved.