2020-05-18 13:04:06 +02:00
|
|
|
|
2020-05-19 18:42:50 +02:00
|
|
|
package eu.dnetlib.dhp.actionmanager.project.httpconnector;
|
2020-05-18 13:04:06 +02:00
|
|
|
|
|
|
|
import java.util.LinkedList;
|
|
|
|
|
|
|
|
public class CollectorPluginErrorLogList extends LinkedList<String> {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = -6925786561303289704L;
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
String log = new String();
|
|
|
|
int index = 0;
|
|
|
|
for (String errorMessage : this) {
|
|
|
|
log += String.format("Retry #%s: %s / ", index++, errorMessage);
|
|
|
|
}
|
|
|
|
return log;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|