[Download][TDAF-1353] Exception fix for 'start' function 37/251137/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 11:36:39 +0000 (11:36 +0000)
commitb05b9ac3b1d86680b36661d04e6fdbe3106c9bb2
tree576470a6e3b6b319662e0cb0621bce5ae1a271e2
parent1448b3346a2507fa94aa5ccee40d5c575c452cf5
[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>
(cherry picked from commit 5465bb59dee2b2c6722cdfd444bd4f0887c80d6b)
src/download/download_api.js
src/download/download_instance.cc