Revision 1360 org.gvsig.raster.wms/trunk/org.gvsig.raster.wms/org.gvsig.raster.wms.io/src/main/java/org/gvsig/raster/wms/io/WMSServerExplorer.java
WMSServerExplorer.java | ||
---|---|---|
48 | 48 |
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
49 | 49 |
import org.gvsig.fmap.dal.spi.DataServerExplorerProvider; |
50 | 50 |
import org.gvsig.fmap.dal.spi.DataServerExplorerProviderServices; |
51 |
import org.gvsig.i18n.Messages; |
|
51 | 52 |
|
52 | 53 |
/** |
53 | 54 |
* Explorer for a WMS server |
... | ... | |
175 | 176 |
try { |
176 | 177 |
url = new URL(parameters.getHost()); |
177 | 178 |
} catch (Exception e) { |
178 |
throw new RemoteServiceException("Malformed URL",e);
|
|
179 |
throw new RemoteServiceException(Messages.getText("malformed_url"), e);
|
|
179 | 180 |
} |
180 | 181 |
try { |
181 | 182 |
connector = WMSProvider.getConnectorFromURL(url, updateCache); |
182 | 183 |
if (!connector.connect(updateCache, cancellable)) |
183 |
throw new RemoteServiceException("Error connecting");
|
|
184 |
throw new RemoteServiceException(Messages.getText("error_connecting"));
|
|
184 | 185 |
} catch (IOException e) { |
185 |
throw new RemoteServiceException("Error connecting",e);
|
|
186 |
throw new RemoteServiceException(Messages.getText("error_connecting"), e);
|
|
186 | 187 |
} |
187 | 188 |
|
188 | 189 |
} |
Also available in: Unified diff