KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > examples > madlib > MadLibException


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.verge.examples.madlib;
8
9
10 /**
11  * <p>
12  * This class is the exception that is thrown from the MadLib
13  * classes.
14  * </p>
15  *
16  * @author Brian Pontarelli
17  */

18 public class MadLibException extends Exception JavaDoc {
19
20     /**
21      * Constructs a new <code>MadLibException</code>
22      */

23     public MadLibException() {
24     }
25
26     /**
27      * Constructs a new <code>MadLibException</code> with the given error message
28      *
29      * @param message The error message of the exception
30      */

31     public MadLibException(String JavaDoc message) {
32         super(message);
33     }
34
35     /**
36      * Constructs a new <code>MadLibException</code> with the given error message
37      * and root cause throwable
38      *
39      * @param message The error message of the exception
40      * @param cause The root cause throwable of the exception
41      */

42     public MadLibException(String JavaDoc message, Throwable JavaDoc cause) {
43         super(message, cause);
44     }
45
46     /**
47      * Constructs a new <code>MadLibException</code> with the given root cause
48      * throwable
49      *
50      * @param cause The root cause throwable of the exception
51      */

52     public MadLibException(Throwable JavaDoc cause) {
53         super(cause);
54     }
55 }
Popular Tags