001 /* 002 * $Id: ResourcesKeyException.java 348310 2005-11-23 00:11:27Z niallp $ 003 * $Revision: 348310 $ 004 * $Date: 2005-11-23 00:11:27 +0000 (Wed, 23 Nov 2005) $ 005 * 006 * ==================================================================== 007 * 008 * Copyright 2003-2005 The Apache Software Foundation 009 * 010 * Licensed under the Apache License, Version 2.0 (the "License"); 011 * you may not use this file except in compliance with the License. 012 * You may obtain a copy of the License at 013 * 014 * http://www.apache.org/licenses/LICENSE-2.0 015 * 016 * Unless required by applicable law or agreed to in writing, software 017 * distributed under the License is distributed on an "AS IS" BASIS, 018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 019 * See the License for the specific language governing permissions and 020 * limitations under the License. 021 * 022 */ 023 024 package org.apache.commons.resources; 025 026 /** 027 * <p>Specialized subclass of {@link ResourcesException} that is thrown 028 * by a resource getter method of a {@link Resources} instance, if an 029 * invalid key value is specified and the <code>returnNull</code> property 030 * is <code>false</code>.</p> 031 */ 032 public class ResourcesKeyException extends ResourcesException { 033 034 /** 035 * <p>Construct an exception instance documenting that the specified 036 * key value was invalid.</p> 037 * 038 * @param key The invalid key value 039 */ 040 public ResourcesKeyException(String key) { 041 super(key); 042 } 043 044 045 }