Revision 79de4982
Added by Andreas Müller about 7 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/berlinModel/out/BerlinModelTaxonNameExport.java | ||
---|---|---|
182 | 182 |
logger.info("end make " + pluralString+ " ..." + getSuccessString(success)); |
183 | 183 |
|
184 | 184 |
if (!success){ |
185 |
state.setUnsuccessfull(); |
|
185 |
String message = "An undefined error occurred during Taxonname export"; |
|
186 |
state.getResult().addError(message); |
|
186 | 187 |
} |
187 | 188 |
return; |
188 | 189 |
}catch(SQLException e){ |
189 | 190 |
e.printStackTrace(); |
190 | 191 |
logger.error(e.getMessage()); |
191 |
state.setUnsuccessfull();
|
|
192 |
state.getResult().addException(e);
|
|
192 | 193 |
return; |
193 | 194 |
} |
194 | 195 |
} |
Also available in: Unified diff
ref #6519 adapt app-import to ExportResult