-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Exceptions
Jacksgong edited this page Mar 14, 2017
·
1 revision
If occur a exception, you will get it in
FileDownloadListener#error(BaseDownloadTask, Throwable)
Exception | reason |
---|---|
FileDownloadHttpException |
When the HTTP status code is not 200(HTTP_OK), and not 206(HTTP_PARTIAL) either. You can find the request-header, the response-header and response-code in this exception. |
FileDownloadGiveUpRetryException |
When we can't know the size of the download file, and its Transfer-Encoding is not Chunked either; And With this exception, will ignore all retry-chances(BaseDownloadTask#setAutoRetryTimes ). You can ignore such exception by add http.lenient=true to the filedownloader.properties , and will download directly as a Chunked-Resource. |
FileDownloadOutOfSpaceException |
When the file will be downloaded is too large to store. |
FileDownloadNetworkPolicyException |
If you have set true to BaseDownloadTask#setWifiRequired and the network type isn't wifi when task is running |
PathConflictException |
When there is an another running task with the same path to the current task's, in order to avoid two tasks writing to the one file, the current task will receive this exception |
Others | some program Exceptions. |
- Initialization
- Start downloading
- Pause or Stop
- Get the internal stored data
- Customizable Component
- Interface