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.codes;
17  
18  import de.smartics.exceptions.i18n.MessageBean;
19  import de.smartics.properties.api.core.app.PropertyRootException;
20  
21  /**
22   * Base exception of the library for signaling an unspecific cause.
23   */
24  public class ConfigurationRootException extends PropertyRootException
25  {
26    // ********************************* Fields *********************************
27  
28    // --- constants ------------------------------------------------------------
29  
30    /**
31     * The class version identifier.
32     * <p>
33     * The value of this constant is {@value}.
34     * </p>
35     */
36    private static final long serialVersionUID = 1L;
37  
38    // --- members --------------------------------------------------------------
39  
40    // ****************************** Initializer *******************************
41  
42    // ****************************** Constructors ******************************
43  
44    /**
45     * Constructor with error code and no cause for exceptions that do no provide
46     * its context as a message bean.
47     *
48     * @param code the error or exception code of the exception.
49     */
50    public ConfigurationRootException(final ConfigurationsCode code)
51    {
52      super(code);
53    }
54  
55    /**
56     * Constructor with cause and code for exceptions that do no provide its
57     * context as a message bean.
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 code the error or exception code of the exception.
63     */
64    public ConfigurationRootException(final Throwable cause,
65        final ConfigurationsCode code)
66    {
67      super(cause, code);
68    }
69  
70    /**
71     * Default constructor with message bean.
72     *
73     * @param messageBean the message information for the exception.
74     */
75    public ConfigurationRootException(final MessageBean messageBean)
76    {
77      super(messageBean);
78    }
79  
80    // ****************************** Inner Classes *****************************
81  
82    // ********************************* Methods ********************************
83  
84    // --- init -----------------------------------------------------------------
85  
86    // --- get&set --------------------------------------------------------------
87  
88    // --- business -------------------------------------------------------------
89  
90    // --- object basics --------------------------------------------------------
91  
92  }