Revision 42811 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.api/src/main/java/org/gvsig/fmap/dal/exception/ReadRuntimeException.java

View differences:

ReadRuntimeException.java
36 36
	 *
37 37
	 */
38 38
	private static final long serialVersionUID = -7756645643644789613L;
39
	private final static String MESSAGE_FORMAT = "Exception reading from a store of type '%(store)'.";
39
	private final static String MESSAGE_FORMAT = "There was errors loading the feature '%(oid)' from '%(store)'.";
40 40
	private final static String MESSAGE_KEY = "_ReadRuntimeException";
41 41

  
42 42
	public ReadRuntimeException(String store, Throwable cause) {
43 43
		super(MESSAGE_FORMAT, cause, MESSAGE_KEY, serialVersionUID);
44 44
		setValue("store", store);
45
		setValue("oid", "unknown");
45 46
	}
47

  
48
        public ReadRuntimeException(String store, Object oid,Throwable cause) {
49
		super(MESSAGE_FORMAT, cause, MESSAGE_KEY, serialVersionUID);
50
		setValue("store", store);
51
		setValue("oid", String.format("%s", oid));
52
	}
53
        
54
        protected ReadRuntimeException(String fmt, Throwable cause, String msgkey, int code) {
55
            super(fmt, cause, msgkey, code);
56
        }        
57
        
58
        protected ReadRuntimeException(String fmt, Throwable cause, String msgkey, long code) {
59
            super(fmt, cause, msgkey, code);
60
        }
46 61
}
47 62

  

Also available in: Unified diff