Revision 10626 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/filter/DefaultExpressionDataSource.java

View differences:

DefaultExpressionDataSource.java
40 40
 */
41 41
package com.iver.cit.gvsig.gui.filter;
42 42

  
43
import com.hardcode.gdbms.engine.data.driver.DriverException;
43
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
44 44
import com.hardcode.gdbms.engine.values.Value;
45 45
import com.iver.cit.gvsig.fmap.layers.SelectableDataSource;
46 46

  
......
61 61
    public void setTable(SelectableDataSource table) {
62 62
        this.tabla = table;
63 63
    }
64
    public void start() throws DriverException
64
    public void start() throws ReadDriverException
65 65
    {
66 66
        tabla.start();
67 67
    }
68
    public void stop() throws DriverException
68
    public void stop() throws ReadDriverException
69 69
    {
70 70
        tabla.stop();
71 71
    }
......
81 81
    public String getFieldName(int idField) throws FilterException {
82 82
        try {
83 83
			return tabla.getFieldName(idField);
84
		} catch (DriverException e) {
85
			throw new FilterException(e);
84
		} catch (ReadDriverException e) {
85
			throw new FilterException();
86 86
		}
87 87
    }
88 88

  
......
95 95
    public int getFieldCount() throws FilterException {
96 96
        try {
97 97
			return tabla.getFieldCount();
98
		} catch (DriverException e) {
99
			throw new FilterException(e);
98
		} catch (ReadDriverException e) {
99
			throw new FilterException();
100 100
		}
101 101
    }
102 102

  
......
110 110
     */
111 111
    public Value getFieldValue(int row, int field) throws FilterException {
112 112
    	try {
113
			return tabla.getFieldValue((long) row, field);
114
		} catch (DriverException e) {
115
			throw new FilterException(e);
113
			return tabla.getFieldValue(row, field);
114
		} catch (ReadDriverException e) {
115
			throw new FilterException();
116 116
		}
117 117
    }
118 118

  
......
122 122
	public int getRowCount() throws FilterException {
123 123
		try {
124 124
			return (int) tabla.getRowCount();
125
			
126
		} catch (DriverException e) {
127
			throw new FilterException(e);
125

  
126
		} catch (ReadDriverException e) {
127
			throw new FilterException();
128 128
		}
129 129
	}
130 130

  

Also available in: Unified diff