Enhance exception throwing with Boost Exception library
Change-Id: I471023fc23ffaebe04d9668426b4c1b03e4919aa
Refs: #2541
diff --git a/tests/daemon/face/dummy-stream-sender.hpp b/tests/daemon/face/dummy-stream-sender.hpp
index af0e114..7cbb4e2 100644
--- a/tests/daemon/face/dummy-stream-sender.hpp
+++ b/tests/daemon/face/dummy-stream-sender.hpp
@@ -67,7 +67,7 @@
{
if (error)
{
- throw Error("Connection aborted");
+ BOOST_THROW_EXCEPTION(Error("Connection aborted"));
}
// This value may need to be adjusted if some dataset exceeds 100k
@@ -88,7 +88,7 @@
onSendFinished(const boost::system::error_code& error, bool isFinal)
{
if (error) {
- throw Error("Connection aborted");
+ BOOST_THROW_EXCEPTION(Error("Connection aborted"));
}
if (isFinal) {