Revision a28626da
Added by Katja Luther almost 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/ExportManager.java | ||
---|---|---|
34 | 34 |
import eu.etaxonomy.cdm.io.common.ExportResultType; |
35 | 35 |
import eu.etaxonomy.cdm.io.common.IExportConfigurator; |
36 | 36 |
import eu.etaxonomy.cdm.io.common.IIoConfigurator; |
37 |
import eu.etaxonomy.cdm.io.common.IoResultBase; |
|
37 | 38 |
import eu.etaxonomy.cdm.io.jaxb.JaxbExportConfigurator; |
38 | 39 |
import eu.etaxonomy.cdm.io.outputmodel.OutputModelConfigurator; |
39 | 40 |
import eu.etaxonomy.cdm.io.sdd.out.SDDExportConfigurator; |
... | ... | |
323 | 324 |
} |
324 | 325 |
final StringBuilder reportText = new StringBuilder(); |
325 | 326 |
if(result!=null){ |
326 |
List<byte[]> reports = result.getErrors();
|
|
327 |
List<IoResultBase.Error> reports = result.getErrors();
|
|
327 | 328 |
reportText.append("Errors:\\r"); |
328 |
for (byte[] bs : reports) {
|
|
329 |
reportText.append(new String(bs));
|
|
329 |
for (IoResultBase.Error bs : reports) {
|
|
330 |
reportText.append(bs.getMessage() + " - " bs.getException().getStacktrace());
|
|
330 | 331 |
} |
331 |
List<byte[]> warnings = result.getWarnings();
|
|
332 |
List<String> warnings = result.getWarnings();
|
|
332 | 333 |
reportText.append("Warnings:\\r"); |
333 |
for (byte[] bs : warnings) {
|
|
334 |
reportText.append(new String(bs));
|
|
334 |
for (String bs : warnings) {
|
|
335 |
reportText.append(bs);
|
|
335 | 336 |
} |
336 |
List<Exception> exceptions = result.getExceptions();
|
|
337 |
List<IoResultBase.Error> exceptions = result.getExceptions();
|
|
337 | 338 |
reportText.append("Exceptions:\\r"); |
338 |
for (Exception ex : exceptions) {
|
|
339 |
reportText.append(ex.getStackTrace());
|
|
339 |
for (IoResultBase.Error bs : exceptions) {
|
|
340 |
reportText.append(bs.getMessage() + " - " bs.getException().getStacktrace());
|
|
340 | 341 |
} |
341 | 342 |
|
342 | 343 |
|
Also available in: Unified diff
adapt export manager to changes in IOResultBase