Revision 10626 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toolListeners/InfoListener.java

View differences:

InfoListener.java
58 58
import org.xml.sax.ContentHandler;
59 59
import org.xml.sax.SAXException;
60 60

  
61
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
61 62
import com.iver.andami.PluginServices;
62 63
import com.iver.andami.messages.NotificationManager;
63
import com.iver.cit.gvsig.fmap.DriverException;
64
import com.iver.cit.gvsig.exceptions.layers.LoadLayerException;
65
import com.iver.cit.gvsig.exceptions.visitors.VisitorException;
64 66
import com.iver.cit.gvsig.fmap.MapControl;
65 67
import com.iver.cit.gvsig.fmap.ViewPort;
66 68
import com.iver.cit.gvsig.fmap.drivers.DriverIOException;
......
143 145
                    newBitSet = lyrVect.queryByPoint(pReal, tol);
144 146
                    items[i] = new VectorialXMLItem(newBitSet, laCapa);
145 147
                    numLayersInfoable++;
146
                } catch (DriverException e) {
148
                } catch (ReadDriverException e) {
147 149
                    e.printStackTrace();
148 150
                    throw new BehaviorException("Fallo al consultar " + lyrVect.getName());
149
                }
151
                } catch (VisitorException e) {
152
                	 e.printStackTrace();
153
                     throw new BehaviorException("Fallo al consultar " + lyrVect.getName());
154
				}
150 155

  
151 156
			}
152 157
			// TODO: PROVISIONAL PARA LA CAPA WMS
......
197 202
					items[i] =  layer.getInfo(imagePoint, tol, null)[0];
198 203
					numLayersInfoable++;
199 204

  
200
				} catch (DriverException e) {
205
				} catch (ReadDriverException e) {
201 206
					throw new BehaviorException("No se pudo procesar la capa",
202 207
							e);
208
				} catch (VisitorException e) {
209
					throw new BehaviorException("No se pudo procesar la capa",
210
							e);
211
				} catch (LoadLayerException e) {
212
					throw new BehaviorException("No se pudo procesar la capa",
213
							e);
203 214
				}
204 215
			}
205 216
			else if (laCapa instanceof InfoByPoint) {
......
211 222
//					items[i] = new StringXMLItem(text);
212 223
					items[i] = layer.getInfo(imagePoint, tol, null)[0];
213 224
					numLayersInfoable++;
214
				} catch (DriverException e) {
225
				} catch (ReadDriverException e) {
215 226
					throw new BehaviorException("No se pudo procesar la capa",
216 227
							e);
228
				} catch (VisitorException e) {
229
					throw new BehaviorException("No se pudo procesar la capa",
230
							e);
231
				} catch (LoadLayerException e) {
232
					throw new BehaviorException("No se pudo procesar la capa",
233
							e);
217 234
				}
218 235
			}
219 236
		}
......
292 309
		XMLItem[] aux;
293 310

  
294 311
		for (int i = 0; i < sel.length; i++) {
295
			FLayer laCapa = (FLayer) sel[i];
312
			FLayer laCapa = sel[i];
296 313
			if (laCapa instanceof InfoByPoint) {
297 314
				try {
298 315
					InfoByPoint layer = (InfoByPoint) laCapa;
......
301 318
						itemsVector.add(aux[j]);
302 319
						numLayersInfoable++;
303 320
					}
304
				} catch (DriverException e) {
321
				} catch (ReadDriverException e) {
305 322
					throw new BehaviorException("Processing layer",e);
323
				} catch (VisitorException e) {
324
					throw new BehaviorException("Processing layer",e);
325
				} catch (LoadLayerException e) {
326
					throw new BehaviorException("No se pudo procesar la capa",
327
							e);
306 328
				}
307 329
			}
308 330
		}
......
379 401
		XMLItem[] aux;
380 402

  
381 403
		for (int i = 0; i < sel.length; i++) {
382
			FLayer laCapa = (FLayer) sel[i];
404
			FLayer laCapa = sel[i];
383 405
			if (laCapa instanceof InfoByPoint) {
384 406
				try {
385 407
					InfoByPoint layer = (InfoByPoint) laCapa;
......
390 412
							numLayersInfoable++;
391 413
						}
392 414
					}
393
				} catch (DriverException e) {
415
				} catch (ReadDriverException e) {
394 416
					throw new BehaviorException("Processing layer",e);
417
				} catch (VisitorException e) {
418
					throw new BehaviorException("Processing layer",e);
419
				} catch (LoadLayerException e) {
420
					throw new BehaviorException("No se pudo procesar la capa",
421
							e);
395 422
				}
396 423
			}
397 424
		}

Also available in: Unified diff