public synchronized void error(Product p,Exception e){
  if ((e != null) && (e.getMessage() != null)) {
    String message="";
    if (p != null) {
      String o=p.getOrigin();
      if (o != null) {
        String file=o.substring(o.lastIndexOf("/") + 1,o.length());
        message="(" + file + ")";
      }
    }
    processingErrors+=e.getMessage() + message + "<br>";
  }
  errorCounter++;
  if ((endCounter + errorCounter) >= getTotalProcessed()) {
    processingsDone(null);
  }
}

public synchronized void error ( Product p , Exception e ) { if ( ( e != null ) && ( e . getMessage ( ) != null ) ) { String message = "" ; if ( p != null ) { String o = p . getOrigin ( ) ; if ( o != null ) { String file = o . substring ( o . lastIndexOf ( "/" ) + 1 , o . length ( ) ) ; message = "(" + file + ")" ; } } processingErrors += e . getMessage ( ) + message + "<br>" ; } errorCounter ++ ; if ( ( endCounter + errorCounter ) >= getTotalProcessed ( ) ) { processingsDone ( null ) ; } }
case of error during processing : informations are accumulated to be displayed to the user .
