Enhance exception throwing with Boost Exception library
Change-Id: I471023fc23ffaebe04d9668426b4c1b03e4962ba
Refs: #2997
diff --git a/src/signature.cpp b/src/signature.cpp
index 2152dd0..10b2218 100644
--- a/src/signature.cpp
+++ b/src/signature.cpp
@@ -50,7 +50,7 @@
Signature::setValue(const Block& value)
{
if (value.type() != tlv::SignatureValue) {
- throw Error("The supplied block is not SignatureValue");
+ BOOST_THROW_EXCEPTION(Error("The supplied block is not SignatureValue"));
}
m_value = value;
}