1 package org.molwind;
2
3 /*
4 * This file is part of Molwind.
5 *
6 * Molwind is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * Molwind is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with Molwind. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 /**
21 * MolwindException represents a general Molwind exception.
22 *
23 * @author <a href="mailto:oliver.karch@molwind.org">Oliver Karch</a>
24 * @version 1.0
25 */
26 public class MolwindException extends Exception {
27
28 /**
29 * Generated serial id for this class.
30 */
31 private static final long serialVersionUID = 3285624528572330226L;
32
33 /**
34 * Constructs a new exception with null as its detail message.
35 */
36 public MolwindException() {
37 super();
38 }
39
40 /**
41 * Constructs a new exception with the specified detail message.
42 *
43 * @param message
44 * the detail message, saved for later retrieval by the
45 * <code>Throwable.getMessage()</code> method
46 */
47 public MolwindException(final String message) {
48 super(message);
49 }
50
51 /**
52 * Constructs a new exception with the specified detail message and cause.
53 *
54 * @param message
55 * the detail message, saved for later retrieval by the
56 * <code>Throwable.getMessage()</code> method
57 * @param cause
58 * the cause, saved for later retrieval by the
59 * <code>Throwable.getCause()</code> method (a null value is
60 * permitted, and indicates that the cause is nonexistent or unknown)
61 */
62 public MolwindException(final String message, final Throwable cause) {
63 super(message, cause);
64 }
65
66 /**
67 * Constructs a new exception with the specified cause and a detail message
68 * of <code>cause == null ? null : cause.toString()</code> (which typically
69 * contains the class and detail message of cause).
70 *
71 * @param cause
72 * the cause, saved for later retrieval by the
73 * <code>Throwable.getCause()</code> method (a null value is
74 * permitted, and indicates that the cause is nonexistent or unknown)
75 */
76 public MolwindException(final Throwable cause) {
77 super(cause);
78 }
79
80 }