updated errors prior to Mantissa integration

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@512045 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2007-02-26 22:33:36 +00:00
parent 7276d2de09
commit b4bbd4672e
3 changed files with 21 additions and 23 deletions

View File

@ -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.
@ -36,15 +34,6 @@ public class ConvergenceException extends MathException implements Serializable{
super("Convergence failed", new Object[0]);
}
/**
* 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}.
@ -55,16 +44,6 @@ public class ConvergenceException extends MathException implements Serializable{
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);
}
/**
* Create an exception with a given root cause.
* @param cause the exception or error that caused this exception to be thrown

View File

@ -84,6 +84,17 @@ public class FunctionEvaluationException extends MathException {
this.argument = argument;
}
/**
* 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}.

View File

@ -56,6 +56,14 @@ public class MessagesResources_fr
{ "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" },