View Javadoc

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