All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cts.op.TooManyIterationsException Maven / Gradle / Ivy

Go to download

Coordinate Transformation Suite (abridged CTS) is a library developed to perform coordinate transformations using well known geodetic algorithms and parameter sets. It strives to be simple, flexible and interoperable, in this order.

There is a newer version: 1.7.1
Show newest version
/*
 * Coordinate Transformations Suite (abridged CTS)  is a library developped to 
 * perform Coordinate Transformations using well known geodetic algorithms 
 * and parameter sets. 
 * Its main focus are simplicity, flexibility, interoperability, in this order.
 *
 * This library has been originally developed by Michaël Michaud under the JGeod
 * name. It has been renamed CTS in 2009 and shared to the community from 
 * the OrbisGIS code repository.
 *
 * CTS is free software: you can redistribute it and/or modify it under the
 * terms of the GNU Lesser General Public License as published by the Free Software
 * Foundation, either version 3 of the License.
 *
 * CTS is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License along with
 * CTS. If not, see .
 *
 * For more information, please consult: 
 */
package org.cts.op;

/**
 * Manage an exception when the number of iterations exceeded a max count.
 * @author Michaël Michaud
 */
public class TooManyIterationsException extends CoordinateOperationException {

    /**
     * Create a new NonInvertibleOperationException.
     *
     * @param exception description of this exception
     */
    public TooManyIterationsException(String exception) {
        super(exception);
    }

    /**
     * Create a new InterpolationMethodException.
     *
     * @param op the interpolation method
     * @param count max number of iterations
     */
    public TooManyIterationsException(IterativeTransformation op, int count) {
        super("Iterative process " + op.getName() + " exceeded the maximum number of iterations (" + count + ")");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy