Revision 42811 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.file/org.gvsig.fmap.dal.file.dbf/src/main/java/org/gvsig/fmap/dal/store/dbf/DBFFeatureProvider.java
DBFFeatureProvider.java | ||
---|---|---|
51 | 51 |
try { |
52 | 52 |
this.store.loadFeatureProviderByIndex(this); |
53 | 53 |
} catch (DataException e) { |
54 |
throw new ReadRuntimeException("DBFFeatureProvider.load", e);
|
|
54 |
throw new ReadRuntimeException(getNameForMessages(), this.getOID(), e);
|
|
55 | 55 |
} finally { |
56 | 56 |
loading = false; |
57 | 57 |
loaded = true; |
58 | 58 |
} |
59 | 59 |
} |
60 |
|
|
61 |
protected String getNameForMessages() { |
|
62 |
// Solo con proposito de mostrar en mensajes de error. |
|
63 |
try { |
|
64 |
return this.store.getName(); |
|
65 |
} catch(Exception ex) { |
|
66 |
return "unknown"; |
|
67 |
} |
|
68 |
} |
|
60 | 69 |
|
61 | 70 |
public void set(int i, Object value) { |
62 | 71 |
this.load(); |
Also available in: Unified diff