001/*
002 *    GeoAPI - Java interfaces for OGC/ISO standards
003 *    Copyright © 2004-2023 Open Geospatial Consortium, Inc.
004 *    http://www.geoapi.org
005 *
006 *    Licensed under the Apache License, Version 2.0 (the "License");
007 *    you may not use this file except in compliance with the License.
008 *    You may obtain a copy of the License at
009 *
010 *        http://www.apache.org/licenses/LICENSE-2.0
011 *
012 *    Unless required by applicable law or agreed to in writing, software
013 *    distributed under the License is distributed on an "AS IS" BASIS,
014 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 *    See the License for the specific language governing permissions and
016 *    limitations under the License.
017 */
018package org.opengis.referencing.operation;
019
020import org.opengis.util.FactoryException;
021import org.opengis.referencing.crs.CoordinateReferenceSystem;
022
023
024/**
025 * Thrown when a {@linkplain CoordinateOperation coordinate operation} is not found.
026 * It may be because there is no known path between source and target
027 * {@linkplain CoordinateReferenceSystem coordinate reference systems},
028 * or because the requested operation is not available in the environment.
029 *
030 * @author  Martin Desruisseaux (IRD)
031 * @version 3.0
032 * @since   1.0
033 */
034public class OperationNotFoundException extends FactoryException {
035    /**
036     * Serial number for inter-operability with different versions.
037     */
038    private static final long serialVersionUID = -382625493416204214L;
039
040    /**
041     * Construct an exception with no detail message.
042     */
043    public OperationNotFoundException() {
044    }
045
046    /**
047     * Construct an exception with the specified detail message.
048     *
049     * @param message  the detail message, saved for later retrieval by the {@link #getMessage()} method.
050     */
051    public OperationNotFoundException(final String message) {
052        super(message);
053    }
054
055    /**
056     * Construct an exception with the specified detail message and cause.
057     *
058     * @param message  the detail message, saved for later retrieval by the {@link #getMessage()} method.
059     * @param cause    the cause, saved for later retrieval by the {@link #getCause()} method.
060     */
061    public OperationNotFoundException(final String message, final Throwable cause) {
062        super(message, cause);
063    }
064}