root / trunk / libraries / libDataSourceBaseDrivers / src / org / gvsig / data / datastores / vectorial / driver / exception / BadFieldDriverException.java @ 19445
History | View | Annotate | Download (663 Bytes)
1 |
package org.gvsig.data.datastores.vectorial.driver.exception; |
---|---|
2 |
|
3 |
import org.gvsig.data.exception.OpenException; |
4 |
|
5 |
|
6 |
public class BadFieldDriverException extends OpenException { |
7 |
private String description=""; |
8 |
public BadFieldDriverException(String l,Throwable exception) { |
9 |
super(l,exception);
|
10 |
init(); |
11 |
} |
12 |
public BadFieldDriverException(String name, Throwable exception, String description) { |
13 |
super(name,exception);
|
14 |
this.description=description;
|
15 |
init(); |
16 |
} |
17 |
/**
|
18 |
*
|
19 |
*/
|
20 |
private void init() { |
21 |
messageKey = "error_field_layer";
|
22 |
formatString = "Can?t load field of the driver: %(name) "+"\n"+"incorrect type: "+description; |
23 |
} |
24 |
|
25 |
} |