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.spi.config.resolve;
17  
18  import java.util.List;
19  
20  /**
21   * Signals that a property is not resolvable due to recursive definition.
22   */
23  public class RecursivePropertyException extends UnresolvablePropertyException
24  {
25    // ********************************* Fields *********************************
26  
27    // --- constants ------------------------------------------------------------
28  
29    /**
30     * The class version identifier.
31     * <p>
32     * The value of this constant is {@value}.
33     * </p>
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 propertyKey the key to the unknown property.
47     * @param path the path to the recursive point.
48     */
49    public RecursivePropertyException(final String propertyKey,
50        final List<String> path)
51    {
52      this(null, propertyKey, path);
53    }
54  
55    /**
56     * Default Constructor.
57     *
58     * @param cause the cause (which is saved for later retrieval by the
59     *          {@link #getCause()} method). (A <tt>null</tt> value is permitted,
60     *          and indicates that the cause is nonexistent or unknown.)
61     * @param propertyKey the key to the unknown property.
62     * @param path the path to the recursive point.
63     */
64    public RecursivePropertyException(final Throwable cause,
65        final String propertyKey, final List<String> path)
66    {
67      super(cause, propertyKey, path);
68    }
69  
70    // ****************************** Inner Classes *****************************
71  
72    // ********************************* Methods ********************************
73  
74    // --- init -----------------------------------------------------------------
75  
76    // --- get&set --------------------------------------------------------------
77  
78    // --- business -------------------------------------------------------------
79  
80    // --- object basics --------------------------------------------------------
81  
82  }