commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1083166 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/ConvergenceException.java
Date Sat, 19 Mar 2011 12:02:05 GMT
Author: erans
Date: Sat Mar 19 12:02:04 2011
New Revision: 1083166

URL: http://svn.apache.org/viewvc?rev=1083166&view=rev
Log:
New API (MATH-542).

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/ConvergenceException.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/ConvergenceException.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/ConvergenceException.java?rev=1083166&r1=1083165&r2=1083166&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/ConvergenceException.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/ConvergenceException.java
Sat Mar 19 12:02:04 2011
@@ -34,28 +34,18 @@ public class ConvergenceException extend
      * Construct the exception.
      */
     public ConvergenceException() {
-        this(null);
-    }
-    /**
-     * Construct the exception with a specific context.
-     *
-     * @param specific Specific contexte pattern.
-     */
-    public ConvergenceException(Localizable specific) {
-        this(specific,
-             LocalizedFormats.CONVERGENCE_FAILED,
-             null);
+        addMessage(LocalizedFormats.CONVERGENCE_FAILED);
     }
+
     /**
      * Construct the exception with a specific context and arguments.
      *
-     * @param specific Specific contexte pattern.
+     * @param pattern Message pattern providing the specific context of
+     * the error.
      * @param args Arguments.
      */
-    public ConvergenceException(Localizable specific,
+    public ConvergenceException(Localizable pattern,
                                 Object ... args) {
-        super(specific,
-              LocalizedFormats.CONVERGENCE_FAILED,
-              args);
+        addMessage(pattern, args);
     }
 }



Mime
View raw message