01: /*
02: * GNetWatch
03: * Copyright 2006, 2007 Alexandre Fenyo
04: * gnetwatch@fenyo.net
05: *
06: * This file is part of GNetWatch.
07: *
08: * GNetWatch is free software; you can redistribute it and/or modify
09: * it under the terms of the GNU General Public License as published by
10: * the Free Software Foundation; either version 2 of the License, or
11: * (at your option) any later version.
12: *
13: * GNetWatch is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16: * GNU General Public License for more details.
17: *
18: * You should have received a copy of the GNU General Public License
19: * along with GNetWatch; if not, write to the Free Software
20: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21: */
22:
23: package net.fenyo.gnetwatch;
24:
25: /**
26: * An exception for errors specific to this software.
27: * @author Alexandre Fenyo
28: * @version $Id: GeneralException.java,v 1.4 2007/03/03 00:38:20 fenyo Exp $
29: */
30:
31: public class GeneralException extends Exception {
32: public static final long serialVersionUID = 1L;
33:
34: /**
35: * Constructor.
36: * Creates a GeneralException instance.
37: * @param none.
38: */
39: public GeneralException() {
40: super ();
41: }
42:
43: /**
44: * Constructor.
45: * Creates a GeneralException instance.
46: * @param message message associated with this exception.
47: * @param none.
48: */
49: public GeneralException(final String message) {
50: super (message);
51: }
52:
53: /**
54: * Constructor.
55: * Creates a GeneralException instance.
56: * @param message message associated with this exception.
57: * @param exception exception associated with this exception.
58: */
59: public GeneralException(final String message, final Throwable cause) {
60: super (message, cause);
61: }
62:
63: /**
64: * Constructor.
65: * Creates a GeneralException instance.
66: * @param exception exception associated with this exception.
67: */
68: public GeneralException(final Throwable cause) {
69: super(cause);
70: }
71: }
|