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