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

org.opengis.referencing.operation.IncompatibleOperationException Maven / Gradle / Ivy

The newest version!
/*
 *    GeoTools - The Open Source Java GIS Toolkit
 *    http://geotools.org
 *
 *    (C) 2011, Open Source Geospatial Foundation (OSGeo)
 *    (C) 2003-2005, Open Geospatial Consortium Inc.
 *
 *    All Rights Reserved. http://www.opengis.org/legal/
 */
package org.opengis.referencing.operation;

/**
 * Thrown when an operation is applied in a manner inconsistent with one or both of two particular
 * CRS objects.
 *
 * @author Jesse Crossley (SYS Technologies)
 * @since GeoAPI 1.0
 */
public class IncompatibleOperationException extends Exception {
    /** Serial number for interoperability with different versions. */
    private static final long serialVersionUID = 3197174832430350656L;

    /** The invalid Operation name. */
    private final String operationName;

    /**
     * Creates an exception with the specified message and operation name.
     *
     * @param message The detail message. The detail message is saved for later retrieval by the
     *     {@link #getMessage()} method.
     * @param operationName The invalid operation name.
     */
    public IncompatibleOperationException(String message, String operationName) {
        super(message);
        this.operationName = operationName;
    }

    /**
     * Returns the invalid operation name.
     *
     * @return The invalid operation name.
     */
    public String getOperationName() {
        return operationName;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy