Revision 10627 trunk/extensions/extWMS/src/com/iver/cit/gvsig/wmc/WebMapContext.java

View differences:

WebMapContext.java
43 43
*
44 44
* $Id$
45 45
* $Log$
46
* Revision 1.8  2007-01-08 07:57:34  jaume
46
* Revision 1.9  2007-03-06 17:06:43  caballero
47
* Exceptions
48
*
49
* Revision 1.8  2007/01/08 07:57:34  jaume
47 50
* *** empty log message ***
48 51
*
49 52
* Revision 1.7  2006/09/26 14:41:48  jaume
......
126 129

  
127 130
import com.iver.andami.PluginServices;
128 131
import com.iver.andami.messages.NotificationManager;
132
import com.iver.cit.gvsig.exceptions.layers.UnsupportedVersionLayerException;
129 133
import com.iver.cit.gvsig.fmap.crs.CRSFactory;
130
import com.iver.cit.gvsig.fmap.drivers.UnsupportedVersionException;
131 134
import com.iver.cit.gvsig.fmap.exceptions.ImportMapContextException;
132 135
import com.iver.cit.gvsig.fmap.layers.FLayer;
133 136
import com.iver.cit.gvsig.fmap.layers.FLayers;
......
246 249
	 * Initializes the WebMapContext properties from the values in the WebMapContext (.cml)
247 250
	 * file passed in the argument.
248 251
	 * @param file
249
	 * @throws UnsupportedVersionException
252
	 * @throws UnsupportedVersionLayerException
250 253
	 * @throws ImportMapContextException
251 254
	 */
252
	public void readFile(File file) throws UnsupportedVersionException, ImportMapContextException {
255
	public void readFile(File file) throws UnsupportedVersionLayerException, ImportMapContextException {
253 256
		this.mapContextFile = file;
254 257
		errorMessages = new StringBuffer();
255 258
		if (getVersion()!=null) {
......
269 272
				// Once parsed, check errors
270 273
				if (errorMessages.length()>0)
271 274
					throw new ImportMapContextException(errorMessages.toString(), false);
272
			} else throw new UnsupportedVersionException(PluginServices.getText(this, "file_version")+": "+getVersion());
275
			} else throw new UnsupportedVersionLayerException(file.getName(),null);
273 276
		}
274 277
	}
275 278

  

Also available in: Unified diff