Revision 27723 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/FLayerFileVectorial.java

View differences:

FLayerFileVectorial.java
6 6
import org.cresques.cts.IProjection;
7 7
import org.gvsig.fmap.crs.CRSFactory;
8 8
import org.gvsig.fmap.dal.DALLocator;
9
import org.gvsig.fmap.dal.exception.InitializeException;
10
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException;
11 9
import org.gvsig.fmap.dal.exception.ReadException;
12 10
import org.gvsig.fmap.dal.feature.FeatureStore;
13 11
import org.gvsig.fmap.mapcontext.exceptions.DriverLayerException;
......
24 22
import org.gvsig.fmap.mapcontext.rendering.legend.styling.ILabelingStrategy;
25 23
import org.gvsig.tools.dynobject.exception.DynMethodException;
26 24
import org.gvsig.tools.exception.BaseException;
27
import org.gvsig.tools.locator.LocatorException;
28 25

  
29 26
import com.iver.utiles.XMLEntity;
30 27
import com.iver.utiles.XMLException;
......
139 136
		}
140 137
		try {
141 138
			this.setDataStore(DALLocator.getDataManager().createStore(getFeatureStore().getParameters()));
142
		} catch (InitializeException e1) {
143
			throw new LoadLayerException(getName(),e1);
144
		} catch (ReadException e1) {
145
			throw new LoadLayerException(getName(),e1);
146
		} catch (ProviderNotRegisteredException e) {
139
		} catch (Exception e) {
147 140
			throw new LoadLayerException(getName(),e);
148
		} catch (LocatorException e) {
149
			throw new LoadLayerException(getName(),e);
150 141
		}
151 142

  
152 143
			try {
153 144
				this.putLoadSelection();
154 145
				this.putLoadLegend();
155 146
				this.initializeLegendDefault();
156
			} catch (LegendLayerException e) {
147
			} catch (Exception e) {
157 148
				this.setAvailable(false);
158 149
				throw new LegendLayerException(getName(),e);
159
			} catch (XMLException e) {
160
				this.setAvailable(false);
161
				throw new LoadLayerException(getName(),e);
162
			} catch (ReadException e) {
163
				this.setAvailable(false);
164
				throw new LegendLayerException(getName(),e);
165 150
			}
166 151
		this.cleanLoadOptions();
167 152
		this.loaded = true;

Also available in: Unified diff