std::unique_ptr<Proxy::Client> client;
try {
client.reset(new (std::nothrow) Proxy::Client(parent));
- } catch (Exception& e) {
+ } catch (const Exception& e) {
_E("Exception(%s) occurs", e.what());
return nullptr;
}
return nullptr;
}
- client->SetReceiveTimeout(5000);
+ try {
+ client->SetReceiveTimeout(5000);
+ } catch (const Exception& e) {
+ _E("Exception occurs. error(%s)", e.what());
+ return nullptr;
+ }
+
_W("endpoint(%s), fd(%d)", endpoint.c_str(), client->GetFd());
return client.release();
}