Revision 10626 trunk/extensions/extWCS/src/com/iver/cit/gvsig/gui/wcs/WCSWizardData.java
WCSWizardData.java | ||
---|---|---|
48 | 48 |
|
49 | 49 |
import javax.swing.JOptionPane; |
50 | 50 |
|
51 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
51 | 52 |
import com.iver.andami.PluginServices; |
52 |
import com.iver.cit.gvsig.fmap.DriverException; |
|
53 | 53 |
import com.iver.cit.gvsig.fmap.drivers.wcs.FMapWCSDriver; |
54 | 54 |
import com.iver.cit.gvsig.fmap.drivers.wcs.FMapWCSDriverFactory; |
55 | 55 |
import com.iver.cit.gvsig.fmap.layers.WCSLayer; |
... | ... | |
73 | 73 |
private WCSLayer[] coverageList; |
74 | 74 |
|
75 | 75 |
|
76 |
public void setHost(URL host, boolean override) throws DriverException{ |
|
76 |
public void setHost(URL host, boolean override) throws ReadDriverException{
|
|
77 | 77 |
try { |
78 | 78 |
wcs = FMapWCSDriverFactory.getFMapDriverForURL(host); |
79 | 79 |
|
... | ... | |
81 | 81 |
|
82 | 82 |
// Send getCapabilities and describe coverage request; |
83 | 83 |
if (!wcs.connect(override, null)) |
84 |
throw new DriverException(PluginServices.getText(this, "wcs_cant_connect") + host.toString());
|
|
84 |
throw new ReadDriverException(host.getPath(),null);
|
|
85 | 85 |
} catch (ConnectException e) { |
86 | 86 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(), PluginServices.getText(this,"wcs_server_timeout")); |
87 | 87 |
return; |
Also available in: Unified diff