Improve handling of uncaught exceptions in client library 39/93239/2
authorRafal Krypa <r.krypa@samsung.com>
Fri, 21 Oct 2016 07:45:54 +0000 (09:45 +0200)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 21 Oct 2016 08:43:13 +0000 (01:43 -0700)
commit808c31d37791c40453a4e49af7438c9337086a43
treedf8ba35085acc08dbbbe0a5b13a6ea2bea588f66
parent7edc0a1380c52c29a5a634e41befecfd4a7af75c
Improve handling of uncaught exceptions in client library

For easier debugging of unexpected client behaviour where an unexpected
exception is caught in try_cacth wrapper, make the following enhancements:
- Catch all SecurityManager::Exceptions instead of letting them to be
  caught by last resort "catch(...)". This will enable proper error messages.
- Print the information about unexpected exception to stderr of the caller.

Change-Id: I67edc718daa89023d5844e31f52b745257914e1f
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
src/client/client-common.cpp