mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ka...@apache.org
Subject svn commit: r644784 - in /lucene/mahout/trunk/src/main/java/org/apache/mahout/matrix: CardinalityException.java IndexException.java
Date Fri, 04 Apr 2008 17:34:22 GMT
Author: kalle
Date: Fri Apr  4 10:34:14 2008
New Revision: 644784

URL: http://svn.apache.org/viewvc?rev=644784&view=rev
Log:
MAHOUT-22, Several matrix exceptions are checked exceptions, but should be unchecked

Modified:
    lucene/mahout/trunk/src/main/java/org/apache/mahout/matrix/CardinalityException.java
    lucene/mahout/trunk/src/main/java/org/apache/mahout/matrix/IndexException.java

Modified: lucene/mahout/trunk/src/main/java/org/apache/mahout/matrix/CardinalityException.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/src/main/java/org/apache/mahout/matrix/CardinalityException.java?rev=644784&r1=644783&r2=644784&view=diff
==============================================================================
--- lucene/mahout/trunk/src/main/java/org/apache/mahout/matrix/CardinalityException.java (original)
+++ lucene/mahout/trunk/src/main/java/org/apache/mahout/matrix/CardinalityException.java Fri
Apr  4 10:34:14 2008
@@ -20,7 +20,7 @@
  * Exception thrown when there is a cardinality mismatch in matrix operations
  * 
  */
-public class CardinalityException extends Exception {
+public class CardinalityException extends RuntimeException {
 
   private static final long serialVersionUID = 1L;
 

Modified: lucene/mahout/trunk/src/main/java/org/apache/mahout/matrix/IndexException.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/src/main/java/org/apache/mahout/matrix/IndexException.java?rev=644784&r1=644783&r2=644784&view=diff
==============================================================================
--- lucene/mahout/trunk/src/main/java/org/apache/mahout/matrix/IndexException.java (original)
+++ lucene/mahout/trunk/src/main/java/org/apache/mahout/matrix/IndexException.java Fri Apr
 4 10:34:14 2008
@@ -17,10 +17,10 @@
 package org.apache.mahout.matrix;
 
 /**
- * Exception thrown when there is an index outside of the cardinality
+ * Exception thrown when there is an index outside of [0, cardinality)
  * 
  */
-public class IndexException extends Exception {
+public class IndexException extends RuntimeException {
 
   private static final long serialVersionUID = 1L;
 



Mime
View raw message