Revision 675
Added by berkley about 23 years ago
DBSAXNode.java | ||
---|---|---|
143 | 143 |
} |
144 | 144 |
|
145 | 145 |
} catch (SQLException e) { |
146 |
System.out.println("Error in DBSaxNode.writeChildNodeToDB"); |
|
146 | 147 |
System.err.println("Error inserting node: (" + nodetype + ", " + |
147 | 148 |
nodename + ", " + |
148 | 149 |
data + ")" ); |
... | ... | |
169 | 170 |
pstmt.execute(); |
170 | 171 |
pstmt.close(); |
171 | 172 |
} catch (SQLException e) { |
172 |
System.out.println(e.getMessage()); |
|
173 |
System.out.println("Error in DBSaxNode.writeNodeName: " + |
|
174 |
e.getMessage()); |
|
173 | 175 |
throw new SAXException(e.getMessage()); |
174 | 176 |
} |
175 | 177 |
} |
... | ... | |
188 | 190 |
} |
189 | 191 |
stmt.close(); |
190 | 192 |
} catch (SQLException e) { |
191 |
System.out.println("Error getting id: " + e.getMessage()); |
|
193 |
System.out.println("Error in DBSaxNode.generateNodeID: " + |
|
194 |
e.getMessage()); |
|
192 | 195 |
throw new SAXException(e.getMessage()); |
193 | 196 |
} |
194 | 197 |
|
... | ... | |
281 | 284 |
// Close the database statement |
282 | 285 |
pstmt.close(); |
283 | 286 |
} catch (SQLException sqe) { |
284 |
System.err.println("SQL Exception while inserting path to index."); |
|
287 |
System.err.println("SQL Exception while inserting path to index in " + |
|
288 |
"DBSAXNode.updateNodeIndex"); |
|
285 | 289 |
System.err.println(sqe.getMessage()); |
286 | 290 |
throw new SAXException(sqe.getMessage()); |
287 | 291 |
} |
... | ... | |
358 | 362 |
// Close the database statement |
359 | 363 |
pstmt.close(); |
360 | 364 |
} catch (SQLException sqe) { |
361 |
System.err.println("SQL Exception while inserting path to index."); |
|
365 |
System.err.println("SQL Exception while inserting path to index in " + |
|
366 |
"DBSAXNode.updateNodeIndex"); |
|
362 | 367 |
System.err.println(sqe.getMessage()); |
363 | 368 |
throw new SAXException(sqe.getMessage()); |
364 | 369 |
} |
Also available in: Unified diff
added precise location information (class.method) to each catch statement so that errors are more easily traced.