001/* 002 * GeoAPI - Java interfaces for OGC/ISO standards 003 * Copyright © 2005-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.coordinate; 019 020 021/** 022 * Indicates that an operation cannot be completed properly because of a 023 * mismatch in the coordinate reference systems or epoch of components. 024 * For example, this exception may be thrown on attempts to construct 025 * an envelope with lower and upper corners in different <abbr>CRS</abbr>. 026 * 027 * @author Martin Desruisseaux (IRD, Geomatys) 028 * @version 3.1 029 * @since 3.1 030 */ 031public class MismatchedCoordinateMetadataException extends IllegalArgumentException { 032 /** 033 * Serial number for inter-operability with different versions. 034 */ 035 private static final long serialVersionUID = 6222334569692693273L; 036 037 /** 038 * Creates an exception with no message. 039 */ 040 public MismatchedCoordinateMetadataException() { 041 } 042 043 /** 044 * Creates an exception with the specified message. 045 * 046 * @param message the detail message. The detail message is saved for 047 * later retrieval by the {@link #getMessage()} method. 048 */ 049 public MismatchedCoordinateMetadataException(String message) { 050 super(message); 051 } 052 053 /** 054 * Creates an exception with the specified message and cause. 055 * 056 * @param message the detail message. The detail message is saved for 057 * later retrieval by the {@link #getMessage()} method. 058 * @param cause the cause. 059 */ 060 public MismatchedCoordinateMetadataException(String message, Throwable cause) { 061 super(message, cause); 062 } 063}