Enhance exception throwing with Boost Exception library
Change-Id: I471023fc23ffaebe04d9668426b4c1b03e4919aa
Refs: #2541
diff --git a/tests/daemon/mgmt/face-status-publisher-common.hpp b/tests/daemon/mgmt/face-status-publisher-common.hpp
index d785149..882c976 100644
--- a/tests/daemon/mgmt/face-status-publisher-common.hpp
+++ b/tests/daemon/mgmt/face-status-publisher-common.hpp
@@ -82,7 +82,7 @@
}
std::stringstream error;
error << "expected type " << type << " got " << block.type();
- throw tlv::Error(error.str());
+ BOOST_THROW_EXCEPTION(tlv::Error(error.str()));
}
static inline uint64_t
@@ -96,7 +96,7 @@
++i;
return readNonNegativeIntegerType(block, type);
}
- throw tlv::Error("Unexpected end of FaceStatus");
+ BOOST_THROW_EXCEPTION(tlv::Error("Unexpected end of FaceStatus"));
}
class FaceStatusPublisherFixture : public BaseFixture