commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject svn commit: r654795 - /commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/INIConfiguration.java
Date Fri, 09 May 2008 13:17:03 GMT
Author: ebourg
Date: Fri May  9 06:17:03 2008
New Revision: 654795

URL: http://svn.apache.org/viewvc?rev=654795&view=rev
Log:
The root exception is now properly chained to the ConfigurationException when an error occurs
on loading an INIConfiguration

Modified:
    commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/INIConfiguration.java

Modified: commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/INIConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/INIConfiguration.java?rev=654795&r1=654794&r2=654795&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/INIConfiguration.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/INIConfiguration.java
Fri May  9 06:17:03 2008
@@ -33,7 +33,7 @@
 
 /**
  * <p>
- * An initialization or ini file is a configuration file tpically found on
+ * An initialization or ini file is a configuration file typically found on
  * Microsoft's Windows operating system and contains data for Windows based
  * applications.
  * </p>
@@ -158,7 +158,7 @@
  * <code>getSections</code> method.
  * </p>
  * <p>
- * <em>Note:</em>Configuration objects of this type can be read concurrently
+ * <em>Note:</em> Configuration objects of this type can be read concurrently
  * by multiple threads. However if one of these threads modifies the object,
  * synchronization has to be performed manually.
  * </p>
@@ -322,9 +322,9 @@
                 line = bufferedReader.readLine();
             }
         }
-        catch (IOException ioe)
+        catch (IOException e)
         {
-            throw new ConfigurationException(ioe.getMessage());
+            throw new ConfigurationException("Unable to load the configuration", e);
         }
     }
 



Mime
View raw message