mirror of https://github.com/apache/lucene.git
LUCENE-1447: improve SegmentTermPositions.getPayload() IOException message
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@714231 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0979fdc423
commit
a18441f0de
|
@ -170,7 +170,7 @@ extends SegmentTermDocs implements TermPositions {
|
||||||
|
|
||||||
public byte[] getPayload(byte[] data, int offset) throws IOException {
|
public byte[] getPayload(byte[] data, int offset) throws IOException {
|
||||||
if (!needToLoadPayload) {
|
if (!needToLoadPayload) {
|
||||||
throw new IOException("Payload cannot be loaded more than once for the same term position.");
|
throw new IOException("Either no payload exists at this term position or an attempt was made to load it more than once.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// read payloads lazily
|
// read payloads lazily
|
||||||
|
|
Loading…
Reference in New Issue