Changeset 230 for trunk/uk/ac/scri/batchimporter/src/sbrn
- Timestamp:
- Feb 14, 2007, 12:43:19 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/uk/ac/scri/batchimporter/src/sbrn/base/BatchDataImporter.java
r226 r230 137 137 boolean importSuccess = batchDataImport.importData(); 138 138 139 //set the response message asappropriate139 //set the success message if appropriate 140 140 if(importSuccess) 141 141 response.setDone("Plugin ended successfully"); 142 else 143 response.setDone("Plugin failed"); 142 144 143 } 145 144 catch (Throwable t) 146 145 { 147 // All exceptions must be ca tchedand sent back146 // All exceptions must be caught and sent back 148 147 // using the response object 149 148 response.setError(t.getMessage(), Arrays.asList(t)); 149 response.setDone("Plugin failed: " + t.getMessage()); 150 150 } 151 151 finally 152 152 { 153 153 154 // IMPORTANT!!! Make sure opened connections are closed 154 155 if (dc != null)
Note: See TracChangeset
for help on using the changeset viewer.