commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r512045 - in /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math: ConvergenceException.java FunctionEvaluationException.java MessagesResources_fr.java
Date Mon, 26 Feb 2007 22:33:37 GMT
Author: luc
Date: Mon Feb 26 14:33:36 2007
New Revision: 512045

URL: http://svn.apache.org/viewvc?view=rev&rev=512045
Log:
updated errors prior to Mantissa integration

Modified:
    jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ConvergenceException.java
    jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/FunctionEvaluationException.java
    jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/MessagesResources_fr.java

Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ConvergenceException.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ConvergenceException.java?view=diff&rev=512045&r1=512044&r2=512045
==============================================================================
--- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ConvergenceException.java
(original)
+++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/ConvergenceException.java
Mon Feb 26 14:33:36 2007
@@ -16,18 +16,16 @@
  */
 package org.apache.commons.math;
 
-import java.io.Serializable;
-
 /**
  * Error thrown when a numerical computation can not be performed because the
  * numerical result failed to converge to a finite value.
  *
  * @version $Revision$ $Date$
  */
-public class ConvergenceException extends MathException implements Serializable{
+public class ConvergenceException extends MathException {
     
     /** Serializable version identifier */
-    private static final long serialVersionUID = 7426445244781020663L;
+    private static final long serialVersionUID = 4380655778005469702L;
 
     /**
      * Default constructor.
@@ -37,15 +35,6 @@
     }
     
     /**
-     * Construct an exception with the given message.
-     * @param message descriptive error message
-     * @deprecated as of 1.2, replaced by {@link #ConvergenceException(String, Object[])}
-     */
-    public ConvergenceException(String message) {
-        super(message);
-    }
-
-    /**
      * Constructs an exception with specified formatted detail message.
      * Message formatting is delegated to {@link java.text.MessageFormat}.
      * @param pattern format specifier
@@ -53,16 +42,6 @@
      */
     public ConvergenceException(String pattern, Object[] arguments) {
         super(pattern, arguments);
-    }
-
-    /**
-     * Construct an exception with the given message and root cause.
-     * @param message descriptive error message
-     * @param cause  the exception or error that caused this exception to be thrown
-     * @deprecated as of 1.2, replaced by {@link #ConvergenceException(String, Object[],
Throwable)}
-     */
-    public ConvergenceException(String message, Throwable cause) {
-        super(message, cause);
     }
 
     /**

Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/FunctionEvaluationException.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/FunctionEvaluationException.java?view=diff&rev=512045&r1=512044&r2=512045
==============================================================================
--- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/FunctionEvaluationException.java
(original)
+++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/FunctionEvaluationException.java
Mon Feb 26 14:33:36 2007
@@ -85,6 +85,17 @@
     }
 
     /**
+     * Constructs an exception with specified root cause.
+     * Message formatting is delegated to {@link java.text.MessageFormat}.
+     * @param argument  the failing function argument 
+     * @param cause  the exception or error that caused this exception to be thrown
+     */
+    public FunctionEvaluationException(double argument, Throwable cause) {
+        super(cause);
+        this.argument = argument;
+    }
+
+    /**
      * Constructs an exception with specified formatted detail message and root cause.
      * Message formatting is delegated to {@link java.text.MessageFormat}.
      * @param argument  the failing function argument 

Modified: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/MessagesResources_fr.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/MessagesResources_fr.java?view=diff&rev=512045&r1=512044&r2=512045
==============================================================================
--- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/MessagesResources_fr.java
(original)
+++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/MessagesResources_fr.java
Mon Feb 26 14:33:36 2007
@@ -56,6 +56,14 @@
     { "Maximal number of iterations ({0}) exceeded",
       "Nombre maximal d''it\u00e9rations ({0}) d\u00e9pass\u00e9" },
 
+    // org.apache.commons.math.DimensionMismatchException
+    { "dimension mismatch {0} != {1}",
+      "dimensions incompatibles {0} != {1}" },
+
+    // org.apache.commons.math.random.NotPositiveDefiniteMatrixException
+    { "not positive definite matrix",
+      "matrice non d\u00e9finie positive" },
+
     // org.apache.commons.math.fraction.FractionConversionException
     { "Unable to convert {0} to fraction after {1} iterations",
       "Impossible de convertir {0} en fraction apr\u00e8s {1} it\u00e9rations" },



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message