KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > scriptella > driver > csv > CsvProviderException


1 /*
2  * Copyright 2006-2007 The Scriptella Project Team.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package scriptella.driver.csv;
17
18 import scriptella.spi.ProviderException;
19
20 /**
21  * Thrown to indicate a problem with CSV file processing.
22  *
23  * @author Fyodor Kupolov
24  * @version 1.0
25  */

26 public class CsvProviderException extends ProviderException {
27     public CsvProviderException() {
28     }
29
30     public CsvProviderException(String JavaDoc message) {
31         super(message);
32     }
33
34     public CsvProviderException(String JavaDoc message, String JavaDoc statement) {
35         super(message);
36         setErrorStatement(statement);
37     }
38
39     public CsvProviderException(String JavaDoc message, Throwable JavaDoc cause) {
40         super(message, cause);
41     }
42
43     public CsvProviderException(String JavaDoc message, Throwable JavaDoc cause, String JavaDoc statement) {
44         super(message, cause);
45         setErrorStatement(statement);
46     }
47
48
49     public CsvProviderException(Throwable JavaDoc cause) {
50         super(cause);
51     }
52
53     public String JavaDoc getProviderName() {
54         return Driver.DIALECT.getName();
55     }
56 }
57
Popular Tags