lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r406096 - /lucene/java/trunk/src/java/org/apache/lucene/store/MMapDirectory.java
Date Sat, 13 May 2006 13:29:23 GMT
Author: dnaber
Date: Sat May 13 06:29:22 2006
New Revision: 406096

URL: http://svn.apache.org/viewcvs?rev=406096&view=rev
Log:
init the cause of exceptions so no information is lost when this exception occurs

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/store/MMapDirectory.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/store/MMapDirectory.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/store/MMapDirectory.java?rev=406096&r1=406095&r2=406096&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/store/MMapDirectory.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/store/MMapDirectory.java Sat May 13 06:29:22
2006
@@ -174,7 +174,9 @@
       try {
         clone.seek(getFilePointer());
       } catch(IOException ioe) {
-        throw new RuntimeException(ioe);
+        RuntimeException newException = new RuntimeException(ioe);
+        newException.initCause(ioe);
+        throw newException;
       };
       return clone;
     }



Mime
View raw message