Revision 675
Added by berkley about 23 years ago
DBSimpleQuery.java | ||
---|---|---|
100 | 100 |
System.out.println(result); |
101 | 101 |
|
102 | 102 |
} catch (Exception e) { |
103 |
System.err.println("EXCEPTION HANDLING REQUIRED");
|
|
103 |
System.err.println("Error in DBSimpleQuery.main");
|
|
104 | 104 |
System.err.println(e.getMessage()); |
105 | 105 |
e.printStackTrace(System.err); |
106 | 106 |
} |
... | ... | |
207 | 207 |
} |
208 | 208 |
pstmt.close(); |
209 | 209 |
} catch (SQLException e) { |
210 |
System.out.println("Error getting id: " + e.getMessage()); |
|
210 |
System.out.println("Error in DBSimpleQuery.findDocuments: " + |
|
211 |
e.getMessage()); |
|
211 | 212 |
} |
212 | 213 |
|
213 | 214 |
return docListResult; |
Also available in: Unified diff
added precise location information (class.method) to each catch statement so that errors are more easily traced.