~ubuntu-branches/ubuntu/quantal/commons-math/quantal

« back to all changes in this revision

Viewing changes to src/main/java/org/apache/commons/math/DuplicateSampleAbscissaException.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:
16
16
 */
17
17
package org.apache.commons.math;
18
18
 
 
19
import org.apache.commons.math.exception.util.LocalizedFormats;
 
20
 
19
21
/**
20
22
 * Exception thrown when a sample contains several entries at the same abscissa.
21
23
 *
22
24
 * @since 1.2
23
 
 * @version $Revision: 822454 $ $Date: 2009-10-06 15:29:52 -0400 (Tue, 06 Oct 2009) $
 
25
 * @version $Revision: 983921 $ $Date: 2010-08-10 12:46:06 +0200 (mar. 10 août 2010) $
24
26
 */
25
27
public class DuplicateSampleAbscissaException extends MathException  {
26
28
 
34
36
     * @param i2 index of another entry having the duplicate abscissa
35
37
     */
36
38
    public DuplicateSampleAbscissaException(double abscissa, int i1, int i2) {
37
 
        super("Abscissa {0} is duplicated at both indices {1} and {2}",
 
39
        super(LocalizedFormats.DUPLICATED_ABSCISSA,
38
40
              abscissa, i1, i2);
39
41
    }
40
42