~ubuntu-branches/ubuntu/oneiric/commons-math/oneiric

« back to all changes in this revision

Viewing changes to src/main/java/org/apache/commons/math/linear/MatrixIndexException.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan, Torsten Werner, Damien Raude-Morvan
  • Date: 2011-03-07 21:14:46 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110307211446-4zea7og4eeyzhpai
Tags: 2.2-1
[ Torsten Werner ]
* Change maintainers into Maintainers.

[ Damien Raude-Morvan ]
* New upstream release (Closes: #617209).
* d/control: Bump Standards-Version to 3.9.1 (no changes needed).
* d/copyright: Refresh years, upgrade to DEP5 r166 and relicence my work
  under Apache-2.0.
* d/ant.properties: Set junit.jar to /usr/share/java/junit4.jar
  to ensure unit tests are launched.
* d/docs: Install upstream RELEASE-NOTES.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
package org.apache.commons.math.linear;
19
19
 
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;
21
23
 
22
24
/**
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) $
26
28
 */
27
29
public class MatrixIndexException extends MathRuntimeException {
28
30
 
29
31
    /** Serializable version identifier */
30
 
    private static final long serialVersionUID = -2382324504109300625L;
 
32
    private static final long serialVersionUID = 8120540015829487660L;
31
33
 
32
34
    /**
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...)}
36
39
     */
 
40
    @Deprecated
37
41
    public MatrixIndexException(final String pattern, final Object ... arguments) {
 
42
      this(new DummyLocalizable(pattern), arguments);
 
43
    }
 
44
 
 
45
    /**
 
46
     * Constructs a new instance with specified formatted detail message.
 
47
     * @param pattern format specifier
 
48
     * @param arguments format arguments
 
49
     * @since 2.2
 
50
     */
 
51
    public MatrixIndexException(final Localizable pattern, final Object ... arguments) {
38
52
      super(pattern, arguments);
39
53
    }
40
54