Project

General

Profile

Revision a28626da

IDa28626dae269d6a39466f4ea9c105c73b29aa258
Parent bc1205e4
Child e83ac2b8

Added by Katja Luther over 3 years ago

adapt export manager to changes in IOResultBase

View differences:

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

Add picture from clipboard (Maximum size: 40 MB)