In this patch, unhandled exception in the RC and RE was handled.
Change-Id: If6337a3fa9e9cc2c3a3b055bffe384f90d6b555c
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18091
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
cv.wait(lock);
}
- catch (OCException &e)
+ catch (const OCException &e)
{
- oclog() << "Exception in main: " << e.what();
+ std::cout << "Exception in main: " << e.what();
}
return 0;
{
std::cout << "main exception : " << e.what() << std::endl;
}
+ catch (...)
+ {
+ std::cout << "main exception : unknown" << std::endl;
+ }
std::cout << "Stopping the server" << std::endl;
}
if (g_isPresenceStarted)
{
- stopPresence();
+ try
+ {
+ stopPresence();
+ }
+ catch(...)
+ {
+ std::cout << "presence stop fail" << std::endl;
+ }
}
}