You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by eb...@apache.org on 2008/05/09 15:17:03 UTC
svn commit: r654795 -
/commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/INIConfiguration.java
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);
}
}