Revision 24753 trunk/extensions/extWFS2/src/com/iver/cit/gvsig/gui/wizards/WFSWizardData.java

View differences:

WFSWizardData.java
136 136
	 * Create the WFSClient and try to connect
137 137
	 * 
138 138
	 * @param host server name
139
	 * @throws Exception 
139 140
	 */
140
	public void setHost(URL host,boolean override) {
141
	public void setHost(URL host,boolean override) throws Exception {
141 142
		try {
142 143
			driver = FMapWFSDriverFactory.getFMapDriverForURL(host);
143 144
			try {
......
152 153
				throw new ConnectionErrorLayerException(host.toString(),null);
153 154
			}
154 155

  
155
		} catch (ConnectionErrorLayerException e1) {
156
			NotificationManager.showMessageError(PluginServices.getText(this,"server_timeout"), e1);
157
			return;
158
		} catch (LoadLayerException e2) {
159
			NotificationManager.showMessageError(PluginServices.getText(this,"cant_connect"), e2);
160
			return;
161
		} catch (WFSException e) {
162
			NotificationManager.showMessageError(PluginServices.getText(this,"cant_connect"), e);
163
			return;
156
		} catch (Exception e1) {
157
			throw e1;
164 158
		}
165 159
	}
166 160

  

Also available in: Unified diff