18
18
package org.apache.commons.math.linear;
20
20
import org.apache.commons.math.MathRuntimeException;
21
import org.apache.commons.math.exception.util.DummyLocalizable;
22
import org.apache.commons.math.exception.util.Localizable;
23
25
* Thrown when an operation addresses a matrix coordinate (row, col)
24
26
* which is outside of the dimensions of a matrix.
25
* @version $Revision: 746578 $ $Date: 2009-02-21 15:01:14 -0500 (Sat, 21 Feb 2009) $
27
* @version $Revision: 1073255 $ $Date: 2011-02-22 09:42:06 +0100 (mar. 22 févr. 2011) $
27
29
public class MatrixIndexException extends MathRuntimeException {
29
31
/** Serializable version identifier */
30
private static final long serialVersionUID = -2382324504109300625L;
32
private static final long serialVersionUID = 8120540015829487660L;
33
35
* Constructs a new instance with specified formatted detail message.
34
36
* @param pattern format specifier
35
37
* @param arguments format arguments
38
* @deprecated as of 2.2 replaced by {@link #MatrixIndexException(Localizable, Object...)}
37
41
public MatrixIndexException(final String pattern, final Object ... arguments) {
42
this(new DummyLocalizable(pattern), arguments);
46
* Constructs a new instance with specified formatted detail message.
47
* @param pattern format specifier
48
* @param arguments format arguments
51
public MatrixIndexException(final Localizable pattern, final Object ... arguments) {
38
52
super(pattern, arguments);