KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > anupam > csv > exceptions > CSVOException


1 /*
2  * CSVOException.java
3  *
4  * Copyright (C) 2005 Anupam Sengupta (anupamsg@users.sourceforge.net)
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  *
20  * Version: $Revision: 1.1 $
21  */

22 package net.sf.anupam.csv.exceptions;
23
24 /**
25  * A checked exception for CSV Objects framework. This exception is used internally
26  * within the framework.
27  *
28  * @author Anupam Sengupta
29  * @version $Revision: 1.1 $
30  */

31 public class CSVOException extends Exception JavaDoc {
32
33     /**
34      * Default Constructor.
35      */

36     public CSVOException() {
37         super();
38     }
39
40     /**
41      * Constructor accepting a message string.
42      *
43      * @param message the error message
44      */

45     public CSVOException(final String JavaDoc message) {
46         super(message);
47     }
48
49     /**
50      * Constructor accepting a message and a root cause exception to embed.
51      *
52      * @param message the error message
53      * @param cause the root cause exception
54      */

55     public CSVOException(final String JavaDoc message, final Throwable JavaDoc cause) {
56         super(message, cause);
57     }
58
59     /**
60      * Constructor accepting the root cause exception to embed.
61      *
62      * @param cause the root cause exception
63      */

64     public CSVOException(final Throwable JavaDoc cause) {
65         super(cause);
66     }
67 }
68
Popular Tags