1 /*
2 * Copyright 2006-2016 The JGUIraffe Team.
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 net.sf.jguiraffe.gui.forms;
17
18 /**
19 * <p>
20 * An exception class for reporting runtime exceptions related to the form
21 * framework.
22 * </p>
23 *
24 * @author Oliver Heger
25 * @version $Id: FormRuntimeException.java 205 2012-01-29 18:29:57Z oheger $
26 */
27 public class FormRuntimeException extends RuntimeException
28 {
29 /**
30 * The serial version UID.
31 */
32 private static final long serialVersionUID = -1843826607259553025L;
33
34 /**
35 * Creates a new instance of <code>FormRuntimeException</code>.
36 */
37 public FormRuntimeException()
38 {
39 super();
40 }
41
42 /**
43 * Creates a new instance of <code>FormRuntimeException</code> and
44 * initializes it with an error message.
45 *
46 * @param msg the error message
47 */
48 public FormRuntimeException(String msg)
49 {
50 super(msg);
51 }
52
53 /**
54 * Creates a new instance of <code>FormRuntimeException</code> and
55 * initializes it with the root cause.
56 *
57 * @param cause the root cause
58 */
59 public FormRuntimeException(Throwable cause)
60 {
61 super(cause);
62 }
63
64 /**
65 * Creates a new instance of <code>FormRuntimeException</code> and
66 * initializes it with an error message and the root cause.
67 *
68 * @param msg the error message
69 * @param cause the root cause
70 */
71 public FormRuntimeException(String msg, Throwable cause)
72 {
73 super(msg, cause);
74 }
75 }