client.h add some exception guards

These are one shot operations anyway,
and allowing user exceptions to propagate
to core PVA isn't helpful.
This commit is contained in:
Michael Davidsaver committed 2018-10-07 20:07:40 -07:00
1 parent 53b95dd336
commit 165313d8f5
2 files changed
+10 -2

No files matched your search

+5 -1
View File
@@ -50,7 +50,11 @@ struct Getter : public pvac::detail::CallbackStorage,
pvac::ClientChannel::GetCallback *C=cb;
cb = 0;
CallbackUse U(G);
C->getDone(event);
try {
C->getDone(event);
} catch(std::exception& e) {
LOG(pva::logLevelInfo, "Lost exception during getDone(): %s", e.what());
}
}
virtual std::string name() const OVERRIDE FINAL
+5 -1
View File
@@ -54,7 +54,11 @@ struct Putter : public pvac::detail::CallbackStorage,
pvac::ClientChannel::PutCallback *C=cb;
cb = 0;
CallbackUse U(G);
C->putDone(event);
try {
C->putDone(event);
} catch(std::exception& e) {
LOG(pva::logLevelInfo, "Lost exception during putDone(): %s", e.what());
}
}
virtual std::string name() const OVERRIDE FINAL