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.core.app;
17
18 import de.smartics.exceptions.i18n.AbstractMessageBean;
19 import de.smartics.exceptions.i18n.message.ParentMessageParam;
20
21 /**
22 * Base implementation of all message beans used in this library.
23 */
24 @ParentMessageParam("cause=causeMessage:message")
25 public abstract class AbstractBaseMessageBean extends AbstractMessageBean
26 {
27 // ********************************* Fields *********************************
28
29 // --- constants ------------------------------------------------------------
30
31 /**
32 * The class version identifier.
33 * <p>
34 * The value of this constant is {@value}.
35 * </p>
36 */
37 private static final long serialVersionUID = 1L;
38
39 // --- members --------------------------------------------------------------
40
41 // ****************************** Initializer *******************************
42
43 // ****************************** Constructors ******************************
44
45 /**
46 * Constructor without a cause.
47 *
48 * @param code the error or exception code of the exception.
49 */
50 public AbstractBaseMessageBean(final PropertiesCode code)
51 {
52 this(code, null);
53 }
54
55 /**
56 * Default constructor.
57 *
58 * @param code the error or exception code of the exception.
59 * @param cause the cause to the problem.
60 */
61 public AbstractBaseMessageBean(final PropertiesCode code,
62 final Throwable cause)
63 {
64 super(code, cause);
65 }
66
67 // ****************************** Inner Classes *****************************
68
69 // ********************************* Methods ********************************
70
71 // --- init -----------------------------------------------------------------
72
73 // --- get&set --------------------------------------------------------------
74
75 // --- business -------------------------------------------------------------
76
77 // --- object basics --------------------------------------------------------
78
79 }