View Javadoc

1   /*
2    * Copyright 2007-2011 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.exceptions.i18n;
17  
18  import de.smartics.exceptions.i18n.app.ConfigurationExceptionCode;
19  
20  /**
21   * This configuration exception is thrown if the system encountered an
22   * inconsistent configuration or configuration information was missing.
23   *
24   * @author <a href="mailto:robert.reiner@smartics.de">Robert Reiner</a>
25   * @version $Revision$
26   */
27  public class ConfigurationException extends AbstractLocalizedRuntimeException
28  {
29    // ********************************* Fields *********************************
30  
31    // --- constants ------------------------------------------------------------
32  
33    /**
34     * The class version identifier.
35     * <p>
36     * The value of this constant is {@value}.
37     */
38    private static final long serialVersionUID = 1L;
39  
40    // --- members --------------------------------------------------------------
41  
42    // ****************************** Initializer *******************************
43  
44    // ****************************** Constructors ******************************
45  
46    /**
47     * Constructor.
48     *
49     * @param code the error or exception code of the exception.
50     * @param bundleBaseName the fully qualified name of the bundle to use.
51     * @see AbstractLocalizedRuntimeException#AbstractLocalizedRuntimeException(Code,String)
52     */
53    public ConfigurationException(final ConfigurationExceptionCode code,
54        final String bundleBaseName)
55    {
56      super(code, bundleBaseName);
57    }
58  
59    /**
60     * Constructor.
61     *
62     * @param code the error or exception code of the exception.
63     * @see AbstractLocalizedRuntimeException#AbstractLocalizedRuntimeException(de.smartics.exceptions.core.Code)
64     */
65    public ConfigurationException(final ConfigurationExceptionCode code)
66    {
67      super(code);
68    }
69  
70    /**
71     * Constructor.
72     *
73     * @param cause the cause (which is saved for later retrieval by the
74     *          {@link #getCause()} method). (A <tt>null</tt> value is permitted,
75     *          and indicates that the cause is nonexistent or unknown.)
76     * @param code the error or exception code of the exception.
77     * @param bundleBaseName the fully qualified name of the bundle to use.
78     * @see AbstractLocalizedRuntimeException#AbstractLocalizedRuntimeException(java.lang.Throwable,de.smartics.exceptions.core.Code,String)
79     */
80    public ConfigurationException(final Throwable cause,
81        final ConfigurationExceptionCode code, final String bundleBaseName)
82    {
83      super(cause, code, bundleBaseName);
84    }
85  
86    /**
87     * Constructor.
88     *
89     * @param cause the cause (which is saved for later retrieval by the
90     *          {@link #getCause()} method). (A <tt>null</tt> value is permitted,
91     *          and indicates that the cause is nonexistent or unknown.)
92     * @param code the error or exception code of the exception.
93     * @see AbstractLocalizedRuntimeException#AbstractLocalizedRuntimeException(Throwable,de.smartics.exceptions.core.Code)
94     */
95    public ConfigurationException(final Throwable cause,
96        final ConfigurationExceptionCode code)
97    {
98      super(cause, code);
99    }
100 
101   // ****************************** Inner Classes *****************************
102 
103   // ********************************* Methods ********************************
104 
105   // --- init -----------------------------------------------------------------
106 
107   // --- get&set --------------------------------------------------------------
108 
109   // --- business -------------------------------------------------------------
110 
111   // --- object basics --------------------------------------------------------
112 }