KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > fenyo > gnetwatch > GeneralException


1
2 /*
3  * GNetWatch
4  * Copyright 2006, 2007 Alexandre Fenyo
5  * gnetwatch@fenyo.net
6  *
7  * This file is part of GNetWatch.
8  *
9  * GNetWatch is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * GNetWatch is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with GNetWatch; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22  */

23
24 package net.fenyo.gnetwatch;
25
26 /**
27  * An exception for errors specific to this software.
28  * @author Alexandre Fenyo
29  * @version $Id: GeneralException.java,v 1.4 2007/03/03 00:38:20 fenyo Exp $
30  */

31
32 public class GeneralException extends Exception JavaDoc {
33   public static final long serialVersionUID = 1L;
34
35   /**
36    * Constructor.
37    * Creates a GeneralException instance.
38    * @param none.
39    */

40   public GeneralException() {
41    super();
42   }
43
44   /**
45    * Constructor.
46    * Creates a GeneralException instance.
47    * @param message message associated with this exception.
48    * @param none.
49    */

50   public GeneralException(final String JavaDoc message) {
51     super(message);
52    }
53
54   /**
55    * Constructor.
56    * Creates a GeneralException instance.
57    * @param message message associated with this exception.
58    * @param exception exception associated with this exception.
59    */

60   public GeneralException(final String JavaDoc message, final Throwable JavaDoc cause) {
61     super(message, cause);
62    }
63
64   /**
65    * Constructor.
66    * Creates a GeneralException instance.
67    * @param exception exception associated with this exception.
68    */

69   public GeneralException(final Throwable JavaDoc cause) {
70     super(cause);
71    }
72 }
73
Popular Tags