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.report.app;
17  
18  /**
19   * Base exception of the library for signaling an unspecific cause.
20   */
21  public class ReportException 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     * Convenience constructor.
40     *
41     * @param message the detail message (which is saved for later retrieval by
42     *          the {@link #getMessage()} method).
43     * @see java.lang.RuntimeException#RuntimeException(java.lang.String,java.lang.Throwable)
44     */
45    public ReportException(final String message)
46    {
47      this(message, null);
48    }
49  
50    /**
51     * Convenience constructor.
52     *
53     * @param cause the cause (which is saved for later retrieval by the
54     *          {@link #getCause()} method). (A <tt>null</tt> value is permitted,
55     *          and indicates that the cause is nonexistent or unknown.)
56     * @see java.lang.RuntimeException#RuntimeException(java.lang.String,java.lang.Throwable)
57     */
58    public ReportException(final Throwable cause)
59    {
60      this(null, cause);
61    }
62  
63    /**
64     * Default 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     * @see java.lang.RuntimeException#RuntimeException(java.lang.String,java.lang.Throwable)
72     */
73    public ReportException(final String message, final Throwable cause)
74    {
75      super(message, cause);
76    }
77  
78    // ****************************** Inner Classes *****************************
79  
80    // ********************************* Methods ********************************
81  
82    // --- init -----------------------------------------------------------------
83  
84    // --- get&set --------------------------------------------------------------
85  
86    // --- business -------------------------------------------------------------
87  
88    // --- object basics --------------------------------------------------------
89  
90  }