removed deprecated exceptions constructors

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_0@651252 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2008-04-24 13:17:30 +00:00
parent 4c7e51fd41
commit 93c0636cb6
5 changed files with 5 additions and 114 deletions

View File

@ -65,30 +65,4 @@ public class ConvergenceException extends MathException {
super(pattern, arguments, cause);
}
/**
* Constructs a new <code>ConvergenceException</code> with specified
* detail message and nested <code>Throwable</code> root cause.
*
* @param msg the error message.
* @param rootCause 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 msg, Throwable rootCause) {
super(msg, rootCause);
}
/**
* Constructs a new <code>ConvergenceException</code> with specified
* detail message.
*
* @param msg the error message.
* @deprecated as of 1.2, replaced by
* {@link #ConvergenceException(String, Object[])}
*/
public ConvergenceException(String msg) {
super(msg);
}
}

View File

@ -27,7 +27,7 @@ package org.apache.commons.math;
public class FunctionEvaluationException extends MathException {
/** Serializable version identifier. */
private static final long serialVersionUID = -7619974756160279127L;
private static final long serialVersionUID = -2193260774031645876L;
/** Argument causing function evaluation failure */
private double argument = Double.NaN;
@ -44,19 +44,6 @@ public class FunctionEvaluationException extends MathException {
this.argument = argument;
}
/**
* Construct an exception using the given argument and message
* text.
*
* @param argument the failing function argument
* @param message the exception message text
* @deprecated as of 1.2, replaced by {@link #FunctionEvaluationException(double, String, Object[])}
*/
public FunctionEvaluationException(double argument, String message) {
super(message);
this.argument = argument;
}
/**
* Constructs an exception with specified formatted detail message.
* Message formatting is delegated to {@link java.text.MessageFormat}.
@ -71,20 +58,6 @@ public class FunctionEvaluationException extends MathException {
this.argument = argument;
}
/**
* Construct an exception with the given argument, message and root cause.
*
* @param argument the failing function argument
* @param message descriptive error message
* @param cause root cause.
* @deprecated as of 1.2, replaced by {@link #FunctionEvaluationException(double, String, Object[], Throwable)}
*/
public FunctionEvaluationException(double argument,
String message, Throwable cause) {
super(message, cause);
this.argument = argument;
}
/**
* Constructs an exception with specified root cause.
* Message formatting is delegated to {@link java.text.MessageFormat}.

View File

@ -25,7 +25,8 @@ import java.io.Serializable;
public class MathConfigurationException extends MathException implements Serializable{
/** Serializable version identifier */
private static final long serialVersionUID = -4056541384141349722L;
private static final long serialVersionUID = 5261476508226103366L;
/**
* Default constructor.
*/
@ -33,15 +34,6 @@ public class MathConfigurationException extends MathException implements Seriali
super();
}
/**
* Construct an exception with the given message.
* @param message descriptive error message
* @deprecated as of 1.2, replaced by {@link #MathConfigurationException(String, Object[])}
*/
public MathConfigurationException(String message) {
super(message);
}
/**
* Constructs an exception with specified formatted detail message.
* Message formatting is delegated to {@link java.text.MessageFormat}.
@ -53,16 +45,6 @@ public class MathConfigurationException extends MathException implements Seriali
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 #MathConfigurationException(String, Object[], Throwable)}
*/
public MathConfigurationException(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

@ -36,7 +36,7 @@ import java.util.ResourceBundle;
public class MathException extends Exception {
/** Serializable version identifier */
private static final long serialVersionUID = -8602234299177097102L;
private static final long serialVersionUID = 1428666635974829194L;
/**
* Does JDK support nested exceptions?
@ -127,20 +127,6 @@ public class MathException extends Exception {
this.rootCause = null;
}
/**
* Constructs a new <code>MathException</code> with specified
* detail message.
*
* @param msg the error message.
* @deprecated as of 1.2, replaced by {@link #MathException(String, Object[])}
*/
public MathException(String msg) {
super(msg);
this.pattern = msg;
this.arguments = new Object[0];
this.rootCause = null;
}
/**
* Constructs a new <code>MathException</code> with specified
* formatted detail message.
@ -169,22 +155,6 @@ public class MathException extends Exception {
this.rootCause = rootCause;
}
/**
* Constructs a new <code>MathException</code> with specified
* detail message and nested <code>Throwable</code> root cause.
*
* @param msg the error message.
* @param rootCause the exception or error that caused this exception
* to be thrown.
* @deprecated as of 1.2, replaced by {@link #MathException(String, Object[], Throwable)}
*/
public MathException(String msg, Throwable rootCause) {
super(msg);
this.pattern = msg;
this.arguments = new Object[0];
this.rootCause = rootCause;
}
/**
* Constructs a new <code>MathException</code> with specified
* formatted detail message and nested <code>Throwable</code> root cause.

View File

@ -25,15 +25,7 @@ package org.apache.commons.math.linear;
public class MatrixIndexException extends RuntimeException {
/** Serializable version identifier */
private static final long serialVersionUID = -1341109412864309526L;
/**
* Default constructor.
* @deprecated as of 1.2 replaced by #MatrixIndexException(String)
*/
public MatrixIndexException() {
this(null);
}
private static final long serialVersionUID = 3728473373420246054L;
/**
* Construct an exception with the given message and root cause.