001/* 002 * GeoAPI - Java interfaces for OGC/ISO standards 003 * Copyright © 2015-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.feature; 019 020 021/** 022 * Thrown when a property requested by its name is not found in a {@link Feature} or {@link FeatureType}. 023 * 024 * @author Martin Desruisseaux (Geomatys) 025 * @version 3.1 026 * @since 3.1 027 */ 028public class PropertyNotFoundException extends IllegalArgumentException { 029 /** 030 * Serial number for inter-operability with different versions. 031 */ 032 private static final long serialVersionUID = -1669716367803931497L; 033 034 /** 035 * Creates an exception with no message. 036 */ 037 public PropertyNotFoundException() { 038 super(); 039 } 040 041 /** 042 * Creates an exception with the specified message. 043 * 044 * @param message the detail message, saved for later retrieval by the {@link #getMessage()} method. 045 */ 046 public PropertyNotFoundException(final String message) { 047 super(message); 048 } 049 050 /** 051 * Creates an exception with the specified message and cause. 052 * 053 * @param message the detail message, saved for later retrieval by the {@link #getMessage()} method. 054 * @param cause the cause, saved for later retrieval by the {@link #getCause()} method. 055 */ 056 public PropertyNotFoundException(final String message, final Throwable cause) { 057 super(message, cause); 058 } 059}