统计下载出错log

This commit is contained in:
huangzhuanghua
2016-10-09 09:49:00 +08:00
parent 8aa90935d8
commit 52f2dd22f2
6 changed files with 74 additions and 12 deletions

View File

@ -195,7 +195,21 @@ public class DownloadEntity implements Serializable {
public void setSpeed(long speed) {
this.speed = speed;
}
public String getError() {
if (meta != null) {
return meta.get("error");
}
return null;
}
public void setError(String error) {
if (meta == null) {
meta = new HashMap<>();
}
meta.put("error", error);
}
public HashMap<String, String> getMeta() {
return meta;
}