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