Revision 46425

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.db/org.gvsig.fmap.dal.db.jdbc/src/main/java/org/gvsig/fmap/dal/store/jdbc2/JDBCUtils.java
156 156
            return rs;
157 157
        } catch(Exception ex) {
158 158
            LOGGER.debug("execute query SQL: " + getSQLInfo(st,sql), ex);
159
            throw ex;
159
            throw new SQLException(ex.getMessage() +getSQLInfo(st,sql), ex);
160 160
        }
161 161
    }
162 162

  
......
169 169
            st.execute();
170 170
        } catch(Exception ex) {
171 171
            LOGGER.debug("execute SQL: " + getSQLInfo(st,sql), ex);
172
            throw ex;
172
            throw new SQLException(ex.getMessage() +getSQLInfo(st,sql), ex);
173 173
        }
174 174
    }
175 175

  
......
181 181
            return st.executeUpdate();
182 182
        } catch(Exception ex) {
183 183
            LOGGER.debug("execute update SQL: " + getSQLInfo(st,sql), ex);
184
            throw ex;
184
            throw new SQLException(ex.getMessage() +getSQLInfo(st,sql), ex);
185 185
        }
186 186
    }
187 187

  

Also available in: Unified diff