svn-gvsig-desktop / branches / Mobile_Compatible_Hito_1 / libFMap_mobile_shp_driver / src-file / org / gvsig / data / datastores / vectorial / file / exception / FileNotFoundException.java @ 21865
History | View | Annotate | Download (836 Bytes)
1 |
package org.gvsig.data.datastores.vectorial.file.exception; |
---|---|
2 |
|
3 |
import java.util.Map; |
4 |
|
5 |
import org.gvsig.data.OpenException; |
6 |
|
7 |
public class FileNotFoundException extends OpenException { |
8 |
private String file = ""; |
9 |
|
10 |
public FileNotFoundException(String l, String file, Throwable exception) { |
11 |
super(l, exception);
|
12 |
this.file = file;
|
13 |
init(); |
14 |
} |
15 |
|
16 |
public FileNotFoundException(String file, Throwable exception) { |
17 |
super("FileAccess", exception); |
18 |
this.file = file;
|
19 |
init(); |
20 |
} |
21 |
|
22 |
public FileNotFoundException(String file) { |
23 |
super("File not found", "FileAccess"); |
24 |
this.file = file;
|
25 |
init(); |
26 |
} |
27 |
|
28 |
/**
|
29 |
*
|
30 |
*/
|
31 |
protected void init() { |
32 |
messageKey = "error_file_not_found";
|
33 |
formatString = "File not found: " + file;
|
34 |
} |
35 |
|
36 |
protected Map values() { |
37 |
Map params = super.values(); |
38 |
params.put("file", this.file); |
39 |
return params;
|
40 |
} |
41 |
|
42 |
} |