lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r714231 - /lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java
Date Sat, 15 Nov 2008 10:51:01 GMT
Author: mikemccand
Date: Sat Nov 15 02:51:01 2008
New Revision: 714231

URL: http://svn.apache.org/viewvc?rev=714231&view=rev
Log:
LUCENE-1447: improve SegmentTermPositions.getPayload() IOException message

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java?rev=714231&r1=714230&r2=714231&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java Sat Nov 15
02:51:01 2008
@@ -170,7 +170,7 @@
 
   public byte[] getPayload(byte[] data, int offset) throws IOException {
     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



Mime
View raw message