Enhance exception throwing with Boost Exception library
Change-Id: I471023fc23ffaebe04d9668426b4c1b03e4962ba
Refs: #2997
diff --git a/tests/unit-tests/security/dummy-keychain.cpp b/tests/unit-tests/security/dummy-keychain.cpp
index 58f3b9e..c7e7a10 100644
--- a/tests/unit-tests/security/dummy-keychain.cpp
+++ b/tests/unit-tests/security/dummy-keychain.cpp
@@ -333,14 +333,14 @@
DummyTpm::decryptInTpm(const uint8_t* data, size_t dataLength, const Name& keyName,
bool isSymmetric)
{
- throw Error("Not supported");
+ BOOST_THROW_EXCEPTION(Error("Not supported"));
}
ConstBufferPtr
DummyTpm::encryptInTpm(const uint8_t* data, size_t dataLength, const Name& keyName,
bool isSymmetric)
{
- throw Error("Not supported");
+ BOOST_THROW_EXCEPTION(Error("Not supported"));
}
void
@@ -369,7 +369,7 @@
ConstBufferPtr
DummyTpm::exportPrivateKeyPkcs8FromTpm(const Name& keyName)
{
- throw Error("Not supported");
+ BOOST_THROW_EXCEPTION(Error("Not supported"));
}
bool