KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > engine > csv > exception > CsvException


1 /**
2  * PETALS - PETALS Services Platform.
3  * Copyright (c) 2005 EBM Websourcing, http://www.ebmwebsourcing.com/
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * -------------------------------------------------------------------------
19  * $Id: CsvException.java 1089 2006-09-14 19:57:55Z dutoo $
20  * -------------------------------------------------------------------------
21  */

22 package org.objectweb.petals.engine.csv.exception;
23
24 /**
25  * CSV component specific exception.
26  * @version $Rev: 1065 $Date: ${date}
27  * @since Petals 1.0
28  * @author Marc Dutoo - Open Wide
29  *
30  */

31 public class CsvException extends Exception JavaDoc {
32     
33     private static final long serialVersionUID = 1L;
34
35     protected String JavaDoc messageKey;
36     
37
38     /**
39      * @param message the raw message explaining the cause of the error
40      */

41     public CsvException(String JavaDoc message) {
42         super(message);
43     }
44
45     /**
46      * @param message the raw message explaining the cause of the error
47      * @param e the exception
48      */

49     public CsvException(String JavaDoc message, Throwable JavaDoc e) {
50         super(message + e);
51     }
52
53     /**
54      * @param message the raw message explaining the cause of the error
55      * @param e the exception
56      * @param messageKey key matching a message to display for internationalization
57      */

58     public CsvException(String JavaDoc message, Throwable JavaDoc e, String JavaDoc messageKey) {
59         super(message, e);
60         this.messageKey = messageKey;
61     }
62
63     /**
64      * @param message the raw message explaining the cause of the error
65      * @param messageKey key matching a message to display for internationalization
66      */

67     public CsvException(String JavaDoc message, String JavaDoc messageKey) {
68         super(message);
69         this.messageKey = messageKey;
70     }
71
72 }
73
74
75
Popular Tags