View Javadoc

1   /*
2    * Copyright 2012-2013 smartics, Kronseder & Reiner GmbH
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package de.smartics.properties.api.config.domain;
17  
18  import de.smartics.properties.api.config.domain.key.ConfigurationKey;
19  
20  /**
21   * Signals that configuration with the given key cannot be found as a resource.
22   */
23  public final class ConfigurationNotFoundException extends
24      ConfigurationLoadingException
25  {
26    // ********************************* Fields *********************************
27  
28    // --- constants ------------------------------------------------------------
29  
30    /**
31     * The class version identifier.
32     * <p>
33     * The value of this constant is {@value}.
34     */
35    private static final long serialVersionUID = 1L;
36  
37    // --- members --------------------------------------------------------------
38  
39    // ****************************** Initializer *******************************
40  
41    // ****************************** Constructors ******************************
42  
43    /**
44     * Convenience constructor without root cause.
45     *
46     * @param key the key to the configuration that signaled problems.
47     * @param resourceId the string representation of the path of the properties
48     *          resource that cannot be loaded.
49     */
50    public ConfigurationNotFoundException(final ConfigurationKey key,
51        final String resourceId)
52    {
53      this(null, key, resourceId);
54    }
55  
56    /**
57     * Default Constructor.
58     *
59     * @param cause the cause (which is saved for later retrieval by the
60     *          {@link #getCause()} method). (A <tt>null</tt> value is permitted,
61     *          and indicates that the cause is nonexistent or unknown.)
62     * @param key the key to the configuration that signaled problems.
63     * @param resourceId the string representation of the path of the properties
64     *          resource that cannot be loaded.
65     */
66    public ConfigurationNotFoundException(final Throwable cause,
67        final ConfigurationKey key, final String resourceId)
68    {
69      super(cause, key, resourceId);
70    }
71  
72    // ****************************** Inner Classes *****************************
73  
74    // ********************************* Methods ********************************
75  
76    // --- init -----------------------------------------------------------------
77  
78    // --- get&set --------------------------------------------------------------
79  
80    // --- business -------------------------------------------------------------
81  
82    // --- object basics --------------------------------------------------------
83  
84  }