mirror of
https://github.com/apache/commons-math.git
synced 2025-02-11 04:26:20 +00:00
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:
parent
4c7e51fd41
commit
93c0636cb6
@ -65,30 +65,4 @@ public class ConvergenceException extends MathException {
|
|||||||
super(pattern, arguments, cause);
|
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ package org.apache.commons.math;
|
|||||||
public class FunctionEvaluationException extends MathException {
|
public class FunctionEvaluationException extends MathException {
|
||||||
|
|
||||||
/** Serializable version identifier. */
|
/** Serializable version identifier. */
|
||||||
private static final long serialVersionUID = -7619974756160279127L;
|
private static final long serialVersionUID = -2193260774031645876L;
|
||||||
|
|
||||||
/** Argument causing function evaluation failure */
|
/** Argument causing function evaluation failure */
|
||||||
private double argument = Double.NaN;
|
private double argument = Double.NaN;
|
||||||
@ -44,19 +44,6 @@ public class FunctionEvaluationException extends MathException {
|
|||||||
this.argument = argument;
|
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.
|
* Constructs an exception with specified formatted detail message.
|
||||||
* Message formatting is delegated to {@link java.text.MessageFormat}.
|
* Message formatting is delegated to {@link java.text.MessageFormat}.
|
||||||
@ -71,20 +58,6 @@ public class FunctionEvaluationException extends MathException {
|
|||||||
this.argument = argument;
|
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.
|
* Constructs an exception with specified root cause.
|
||||||
* Message formatting is delegated to {@link java.text.MessageFormat}.
|
* Message formatting is delegated to {@link java.text.MessageFormat}.
|
||||||
|
@ -25,7 +25,8 @@ import java.io.Serializable;
|
|||||||
public class MathConfigurationException extends MathException implements Serializable{
|
public class MathConfigurationException extends MathException implements Serializable{
|
||||||
|
|
||||||
/** Serializable version identifier */
|
/** Serializable version identifier */
|
||||||
private static final long serialVersionUID = -4056541384141349722L;
|
private static final long serialVersionUID = 5261476508226103366L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default constructor.
|
* Default constructor.
|
||||||
*/
|
*/
|
||||||
@ -33,15 +34,6 @@ public class MathConfigurationException extends MathException implements Seriali
|
|||||||
super();
|
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.
|
* Constructs an exception with specified formatted detail message.
|
||||||
* Message formatting is delegated to {@link java.text.MessageFormat}.
|
* Message formatting is delegated to {@link java.text.MessageFormat}.
|
||||||
@ -53,16 +45,6 @@ public class MathConfigurationException extends MathException implements Seriali
|
|||||||
super(pattern, 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 #MathConfigurationException(String, Object[], Throwable)}
|
|
||||||
*/
|
|
||||||
public MathConfigurationException(String message, Throwable cause) {
|
|
||||||
super(message, cause);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an exception with a given root cause.
|
* Create an exception with a given root cause.
|
||||||
* @param cause the exception or error that caused this exception to be thrown
|
* @param cause the exception or error that caused this exception to be thrown
|
||||||
|
@ -36,7 +36,7 @@ import java.util.ResourceBundle;
|
|||||||
public class MathException extends Exception {
|
public class MathException extends Exception {
|
||||||
|
|
||||||
/** Serializable version identifier */
|
/** Serializable version identifier */
|
||||||
private static final long serialVersionUID = -8602234299177097102L;
|
private static final long serialVersionUID = 1428666635974829194L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Does JDK support nested exceptions?
|
* Does JDK support nested exceptions?
|
||||||
@ -127,20 +127,6 @@ public class MathException extends Exception {
|
|||||||
this.rootCause = null;
|
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
|
* Constructs a new <code>MathException</code> with specified
|
||||||
* formatted detail message.
|
* formatted detail message.
|
||||||
@ -169,22 +155,6 @@ public class MathException extends Exception {
|
|||||||
this.rootCause = rootCause;
|
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
|
* Constructs a new <code>MathException</code> with specified
|
||||||
* formatted detail message and nested <code>Throwable</code> root cause.
|
* formatted detail message and nested <code>Throwable</code> root cause.
|
||||||
|
@ -25,15 +25,7 @@ package org.apache.commons.math.linear;
|
|||||||
public class MatrixIndexException extends RuntimeException {
|
public class MatrixIndexException extends RuntimeException {
|
||||||
|
|
||||||
/** Serializable version identifier */
|
/** Serializable version identifier */
|
||||||
private static final long serialVersionUID = -1341109412864309526L;
|
private static final long serialVersionUID = 3728473373420246054L;
|
||||||
|
|
||||||
/**
|
|
||||||
* Default constructor.
|
|
||||||
* @deprecated as of 1.2 replaced by #MatrixIndexException(String)
|
|
||||||
*/
|
|
||||||
public MatrixIndexException() {
|
|
||||||
this(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct an exception with the given message and root cause.
|
* Construct an exception with the given message and root cause.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user