View Javadoc

1   /*
2    * $Id: ResourcesKeyException.java 348310 2005-11-23 00:11:27Z niallp $
3    * $Revision: 348310 $
4    * $Date: 2005-11-23 00:11:27 +0000 (Wed, 23 Nov 2005) $
5    *
6    * ====================================================================
7    *
8    *  Copyright 2003-2005 The Apache Software Foundation
9    *
10   *  Licensed under the Apache License, Version 2.0 (the "License");
11   *  you may not use this file except in compliance with the License.
12   *  You may obtain a copy of the License at
13   *
14   *      http://www.apache.org/licenses/LICENSE-2.0
15   *
16   *  Unless required by applicable law or agreed to in writing, software
17   *  distributed under the License is distributed on an "AS IS" BASIS,
18   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19   *  See the License for the specific language governing permissions and
20   *  limitations under the License.
21   *
22   */
23  
24  package org.apache.commons.resources;
25  
26  /**
27   * <p>Specialized subclass of {@link ResourcesException} that is thrown
28   * by a resource getter method of a {@link Resources} instance, if an
29   * invalid key value is specified and the <code>returnNull</code> property
30   * is <code>false</code>.</p>
31   */
32  public class ResourcesKeyException extends ResourcesException {
33  
34      /**
35       * <p>Construct an exception instance documenting that the specified
36       * key value was invalid.</p>
37       *
38       * @param key The invalid key value
39       */
40      public ResourcesKeyException(String key) {
41          super(key);
42      }
43  
44  
45  }