KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opensubsystems > core > error > OSSException


1 /*
2  * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
3  *
4  * Project: OpenSubsystems
5  *
6  * $Id: OSSException.java,v 1.4 2007/01/07 06:14:50 bastafidli Exp $
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; version 2 of the License.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  */

21  
22 package org.opensubsystems.core.error;
23
24 /**
25  * Base class for all custom exceptions created in this project. All custom
26  * exceptions should be derived from this base class so that it is easy to
27  * separate exception handling for exception generated by our code from
28  * exceptions from other 3rd party components, java, etc.
29  *
30  * @version $Id: OSSException.java,v 1.4 2007/01/07 06:14:50 bastafidli Exp $
31  * @author Miro Halas
32  * @code.reviewer Miro Halas
33  * @code.reviewed 1.2 2004/12/18 06:18:31 bastafidli
34  */

35 public abstract class OSSException extends Exception JavaDoc
36 {
37    /**
38     * Create new exception
39     */

40    public OSSException(
41    )
42    {
43       super();
44    }
45
46    /**
47     * Create new exception
48     *
49     * @param message - message to display
50     */

51    public OSSException(
52       String JavaDoc message
53    )
54    {
55       super(message);
56    }
57
58    /**
59     * Create new exception
60     *
61     * @param message - message to display
62     * @param cause - cause for error
63     */

64    public OSSException(
65       String JavaDoc message,
66       Throwable JavaDoc cause
67    )
68    {
69       super(message, cause);
70    }
71
72    /**
73     * Create new exception
74     *
75     * @param cause - cause for error
76     */

77    public OSSException(
78       Throwable JavaDoc cause
79    )
80    {
81       super(cause);
82    }
83 }
84
Popular Tags