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.app;
17  
18  /**
19   * <p>
20   * An exception class that indicates error conditions related to the
21   * <code>Application</code> class.
22   * </p>
23   * <p>
24   * The application framework contains a startup class for starting a Java GUI
25   * application. Error conditions occurring during the startup phase will cause
26   * exceptions of this type being thrown.
27   * </p>
28   *
29   * @author Oliver Heger
30   * @version $Id: ApplicationException.java 205 2012-01-29 18:29:57Z oheger $
31   */
32  public class ApplicationException extends Exception
33  {
34      /**
35       * The serial version UID.
36       */
37      private static final long serialVersionUID = 3940825554523387981L;
38  
39      /**
40       * Creates a new instance of <code>ApplicationException</code> without
41       * further information.
42       */
43      public ApplicationException()
44      {
45          super();
46      }
47  
48      /**
49       * Creates a new instance of <code>ApplicationException</code> and
50       * initializes it with an error message.
51       *
52       * @param msg the error message
53       */
54      public ApplicationException(String msg)
55      {
56          super(msg);
57      }
58  
59      /**
60       * Creates a new instance of <code>ApplicationException</code> and
61       * initializes it with an error message and a root cause.
62       *
63       * @param msg the error message
64       * @param cause the root cause for this exception
65       */
66      public ApplicationException(String msg, Throwable cause)
67      {
68          super(msg, cause);
69      }
70  
71      /**
72       * Creates a new instance of <code>ApplicationException</code> and
73       * initializes it with the root cause of this exception.
74       *
75       * @param cause the root cause for this exception
76       */
77      public ApplicationException(Throwable cause)
78      {
79          super(cause);
80      }
81  }