cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r959798 - /cassandra/trunk/src/java/org/apache/cassandra/config/DatabaseDescriptor.java
Date Thu, 01 Jul 2010 22:20:03 GMT
Author: jbellis
Date: Thu Jul  1 22:20:03 2010
New Revision: 959798

URL: http://svn.apache.org/viewvc?rev=959798&view=rev
Log:
add friendlier ConfigurationException for malformed AbstractTypes.  patch by Erik Onnen; reviewed
by jbellis for CASSANDRA-1242

Modified:
    cassandra/trunk/src/java/org/apache/cassandra/config/DatabaseDescriptor.java

Modified: cassandra/trunk/src/java/org/apache/cassandra/config/DatabaseDescriptor.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/config/DatabaseDescriptor.java?rev=959798&r1=959797&r2=959798&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/config/DatabaseDescriptor.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/config/DatabaseDescriptor.java Thu Jul 
1 22:20:03 2010
@@ -586,13 +586,13 @@ public class DatabaseDescriptor
         }
         catch (NoSuchFieldException e)
         {
-            ConfigurationException ex = new ConfigurationException(e.getMessage());
+            ConfigurationException ex = new ConfigurationException("Invalid comparator: must
define a public static instance field.");
             ex.initCause(e);
             throw ex;
         }
         catch (IllegalAccessException e)
         {
-            ConfigurationException ex = new ConfigurationException(e.getMessage());
+            ConfigurationException ex = new ConfigurationException("Invalid comparator: must
define a public static instance field.");
             ex.initCause(e);
             throw ex;
         }



Mime
View raw message