Class ThrowingLeafReaderWrapper

All Implemented Interfaces:
Closeable, AutoCloseable

public class ThrowingLeafReaderWrapper extends SequentialStoredFieldsLeafReader
An FilterLeafReader that allows to throw exceptions if certain methods are called on is. This allows to test parts of the system under certain error conditions that would otherwise not be possible.