public interface ErrorHandler
Mapper.run() reports errors by taking the registered error handler and
invoking the respective method of this inteferace.
Implementations may choose between 1) report exceptions immediatly by throwing an IOException in the error methods,
or 2) collecting errors and throwing an exception in the close method.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Throws an exception when one of the above methods was called.
|
void |
lexicalError(Position pos) |
void |
semanticError(Position pos,
Exception e) |
void |
syntaxError(Position pos,
net.oneandone.sushi.util.IntBitSet shiftable) |
void lexicalError(Position pos) throws IOException
IOExceptionvoid syntaxError(Position pos, net.oneandone.sushi.util.IntBitSet shiftable) throws IOException
IOExceptionvoid semanticError(Position pos, Exception e) throws IOException
IOExceptionvoid close()
throws IOException
IOExceptionCopyright © 1998–2017 1&1. All rights reserved.