[Download][TDAF-1353] Exception fix for 'start' function 35/251135/1
authorArkadiusz Pietraszek <a.pietraszek@samsung.com>
Thu, 7 Jan 2021 19:32:28 +0000 (20:32 +0100)
committerArkadiusz Pietraszek <a.pietraszek@samsung.com>
Fri, 8 Jan 2021 10:27:36 +0000 (10:27 +0000)
commit5465bb59dee2b2c6722cdfd444bd4f0887c80d6b
tree51a24e720b3a02b17370cac0f4b3c3194015a659
parentd686437a0d3690b5e206f471b83a118ab560e00e
[Download][TDAF-1353] Exception fix for 'start' function

`start` function was returning unknown error exception instead of
unsupported error in case when networkType in DownloadRequest wasn't
supported by the device.

Additionally fix enables null values to be used (in accordance with the documentation).

[Verification] Code builds without errors. TCT suites deprecated, download and systeminfo pass rate: 100%.
Tested in developer console on devices with telephony set to true and false.
Below code was used with all network types, as well as invalid values.
```
var downloadRequest = new tizen.DownloadRequest(
                    "http://download.tizen.org/tct/2_1/webapi-tizen-download-test-image-lq.png",
                    null, null, "CELLULAR", null);

tizen.download.start(downloadRequest);
```

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