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.proxy;
17  
18  /**
19   * Signals problems with a properties.
20   */
21  public class PropertiesException extends RuntimeException
22  {
23    // ********************************* Fields *********************************
24  
25    // --- constants ------------------------------------------------------------
26  
27    /**
28     * The class version identifier.
29     * <p>
30     * The value of this constant is {@value}.
31     */
32    private static final long serialVersionUID = 1L;
33  
34    // --- members --------------------------------------------------------------
35  
36    // ****************************** Initializer *******************************
37  
38    // ****************************** Constructors ******************************
39  
40    /**
41     * Convenience constructor without a root cause.
42     *
43     * @param message the detail message (which is saved for later retrieval by
44     *          the {@link #getMessage()} method).
45     */
46    public PropertiesException(final String message)
47    {
48      this(message, null);
49    }
50  
51    /**
52     * Convenience constructor without a message.
53     *
54     * @param cause the cause (which is saved for later retrieval by the
55     *          {@link #getCause()} method). (A <tt>null</tt> value is permitted,
56     *          and indicates that the cause is nonexistent or unknown.)
57     */
58    public PropertiesException(final Throwable cause)
59    {
60      this(null, cause);
61    }
62  
63    /**
64     * Constructor.
65     *
66     * @param message the detail message (which is saved for later retrieval by
67     *          the {@link #getMessage()} method).
68     * @param cause the cause (which is saved for later retrieval by the
69     *          {@link #getCause()} method). (A <tt>null</tt> value is permitted,
70     *          and indicates that the cause is nonexistent or unknown.)
71     */
72    public PropertiesException(final String message, final Throwable cause)
73    {
74      super(message, cause);
75    }
76  
77    // ****************************** Inner Classes *****************************
78  
79    // ********************************* Methods ********************************
80  
81    // --- init -----------------------------------------------------------------
82  
83    // --- get&set --------------------------------------------------------------
84  
85    // --- business -------------------------------------------------------------
86  
87    // --- object basics --------------------------------------------------------
88  
89  }