Fix for functions throwing exceptions unspecified by documentation. 08/192008/3
authorMichal Michalski <m.michalski2@partner.samsung.com>
Fri, 26 Oct 2018 12:51:01 +0000 (14:51 +0200)
committerMichal Michalski <m.michalski2@partner.samsung.com>
Mon, 29 Oct 2018 10:01:36 +0000 (10:01 +0000)
commit8f6530130fc058d9fccecfed913204d75188a32b
tree9757159fc551292ed9bcbd6c20c203dd0d34c619
parent4492e71a6d6af5df3fdd50bd7085b9e09a479e1f
Fix for functions throwing exceptions unspecified by documentation.

Functions for removing listeners threw exceptions if listener id
was not registered. This behavior was not specified in docs.
This commit disables those exception and silently returns from
functions if listener for given id is not found.

[Verification] TCT tests which call changed api functions passed.

Change-Id: I8fe1a07ade9a35bfbfa95c1a628eeff95a420e0f
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
src/sound/sound_api.js
src/widgetservice/widgetservice_api.js