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.builder.components;
17
18 import org.apache.commons.lang.exception.NestableException;
19
20 /**
21 * <p>
22 * An exception class for reporting errors of the form builder framework.
23 * </p>
24 *
25 * @author Oliver Heger
26 * @version $Id: FormBuilderException.java 205 2012-01-29 18:29:57Z oheger $
27 */
28 public class FormBuilderException extends NestableException
29 {
30 /**
31 * Serial version UID.
32 */
33 private static final long serialVersionUID = -4113609511081254811L;
34
35 /**
36 * Creates a new instance of <code>FormBuilderException</code> and sets
37 * the error message.
38 *
39 * @param msg the error message
40 */
41 public FormBuilderException(String msg)
42 {
43 super(msg);
44 }
45
46 /**
47 * Creates a new instance of <code>FormBuilderException</code> and sets
48 * the root cause of the exception.
49 *
50 * @param cause the root cause
51 */
52 public FormBuilderException(Throwable cause)
53 {
54 super(cause);
55 }
56
57 /**
58 * Creates a new instance of <code>FormBuilderException</code> and sets
59 * the error message and the root cause.
60 *
61 * @param msg the error message
62 * @param cause the root cause
63 */
64 public FormBuilderException(String msg, Throwable cause)
65 {
66 super(msg, cause);
67 }
68 }