1 /*
2 * Copyright 2013 University of Glasgow.
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 broadwick;
17
18 /**
19 * A general RuntimeException for the Broadwick framework.
20 */
21 @SuppressWarnings("serial")
22 public class BroadwickException extends RuntimeException {
23
24 /**
25 * Constructs a new exception with null as its detail message.
26 */
27 public BroadwickException() {
28 super();
29 }
30
31 /**
32 * Constructs a new exception with the specified detail message.
33 * @param msg the detail message. The detail message is saved for later
34 * retrieval by the Throwable.getMessage() method.
35 */
36 public BroadwickException(final String msg) {
37 super(msg);
38 }
39
40 /**
41 * Constructs a new exception by wrapping a specified throwable.
42 * @param throwable the exception that is wrapped.
43 */
44 public BroadwickException(final Throwable throwable) {
45 super(throwable);
46 }
47 }