Revision 1360 org.gvsig.raster.wcs/trunk/org.gvsig.raster.wcs/org.gvsig.raster.wcs.io/src/main/java/org/gvsig/raster/wcs/io/WCSServerExplorer.java
WCSServerExplorer.java | ||
---|---|---|
45 | 45 |
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
46 | 46 |
import org.gvsig.fmap.dal.spi.DataServerExplorerProvider; |
47 | 47 |
import org.gvsig.fmap.dal.spi.DataServerExplorerProviderServices; |
48 |
import org.gvsig.i18n.Messages; |
|
48 | 49 |
|
49 | 50 |
/** |
50 | 51 |
* Explorer for a WCS server |
... | ... | |
181 | 182 |
try { |
182 | 183 |
url = new URL(parameters.getHost()); |
183 | 184 |
} catch (Exception e) { |
184 |
throw new RemoteServiceException("Malformed URL",e);
|
|
185 |
throw new RemoteServiceException(Messages.getText("malformed_url"), e);
|
|
185 | 186 |
} |
186 | 187 |
try { |
187 | 188 |
connector = WCSProvider.getConnectorFromURL(url); |
188 | 189 |
if (!connector.connect(override, cancellable)) |
189 |
throw new RemoteServiceException("Error connecting");
|
|
190 |
throw new RemoteServiceException(Messages.getText("error_connecting"));
|
|
190 | 191 |
} catch (IOException e) { |
191 |
throw new RemoteServiceException("Error connecting",e);
|
|
192 |
throw new RemoteServiceException(Messages.getText("error_connecting"), e);
|
|
192 | 193 |
} |
193 | 194 |
|
194 | 195 |
} |
Also available in: Unified diff