Enhance exception throwing with Boost Exception library
Change-Id: I471023fc23ffaebe04d9668426b4c1b03e4962ba
Refs: #2997
diff --git a/src/util/io.hpp b/src/util/io.hpp
index f49d712..f751bc6 100644
--- a/src/util/io.hpp
+++ b/src/util/io.hpp
@@ -148,15 +148,15 @@
}
catch (TypeError& e)
{
- throw Error(e.what());
+ BOOST_THROW_EXCEPTION(Error(e.what()));
}
catch (CryptoPP::Exception& e)
{
- throw Error(e.what());
+ BOOST_THROW_EXCEPTION(Error(e.what()));
}
catch (tlv::Error& e)
{
- throw Error(e.what());
+ BOOST_THROW_EXCEPTION(Error(e.what()));
}
}