[download] Download module exception correction 48/206648/13
authorArkadiusz Pietraszek <a.pietraszek@partner.samsung.com>
Wed, 22 May 2019 13:00:41 +0000 (15:00 +0200)
committerArkadiusz Pietraszek <a.pietraszek@partner.samsung.com>
Wed, 4 Sep 2019 13:21:49 +0000 (15:21 +0200)
commit678c7e4e5e0a360adb2f1db09a10ad2fb98e94fd
treee875280aeb11dc08c40090c3ee8043c11d4df940
parent20a32c9d05d7fc06c4e5da7d611e07518791e578
[download] Download module exception correction

NotFoundError and TypeMismatchError exceptions removed from methods:
void cancel(long);
void pause(long);
void resume(long);

Change that enables resuming canceled or failed download job.
abandon() method added, to destroy download job, abandoned download can not be resumed.
ABANDONED state added to differentiate from CANCELED, which can be resumed.

[Verification] Download TCT pass rate is 100%.
New behaviour was tested manually from console.

ACR: http://suprem.sec.samsung.net/jira/browse/TWDAPI-222

Change-Id: I52f5e7fa1875f49354178b8979c92e0d20011bc2
Signed-off-by: Arkadiusz Pietraszek <a.pietraszek@partner.samsung.com>
src/download/download_api.js
src/download/download_instance.cc
src/download/download_instance.h