package com.liulishuo.filedownloader.exception; import com.liulishuo.filedownloader.util.FileDownloadUtils; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /* loaded from: classes.dex */ public class FileDownloadHttpException extends IOException { private final int mCode; private final Map> mRequestHeaderMap; private final Map> mResponseHeaderMap; public FileDownloadHttpException(int i, Map> map, Map> map2) { super(FileDownloadUtils.a("response code error: %d, \n request headers: %s \n response headers: %s", Integer.valueOf(i), map, map2)); this.mCode = i; this.mRequestHeaderMap = cloneSerializableMap(map); this.mResponseHeaderMap = cloneSerializableMap(map); } private static Map> cloneSerializableMap(Map> map) { HashMap hashMap = new HashMap(); for (Map.Entry> entry : map.entrySet()) { hashMap.put(entry.getKey(), new ArrayList(entry.getValue())); } return hashMap; } public int getCode() { return this.mCode; } public Map> getRequestHeader() { return this.mRequestHeaderMap; } public Map> getResponseHeader() { return this.mResponseHeaderMap; } }