Enhance exception throwing with Boost Exception library
Change-Id: I471023fc23ffaebe04d9668426b4c1b03e4962ba
Refs: #2997
diff --git a/src/selectors.cpp b/src/selectors.cpp
index 6e637fa..7b46b1e 100644
--- a/src/selectors.cpp
+++ b/src/selectors.cpp
@@ -135,7 +135,7 @@
Selectors::wireDecode(const Block& wire)
{
if (wire.type() != tlv::Selectors)
- throw tlv::Error("Unexpected TLV type when decoding Selectors");
+ BOOST_THROW_EXCEPTION(tlv::Error("Unexpected TLV type when decoding Selectors"));
*this = Selectors();