Replace remaining uses of BOOST_THROW_EXCEPTION with NDN_THROW
Change-Id: I0c149acbe5607d928cdf9e8d73813d5e74ca45d0
diff --git a/src/lsa/lsa.cpp b/src/lsa/lsa.cpp
index dd8267e..25841d2 100644
--- a/src/lsa/lsa.cpp
+++ b/src/lsa/lsa.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2020, The University of Memphis,
+ * Copyright (c) 2014-2021, The University of Memphis,
* Regents of the University of California,
* Arizona Board of Regents.
*
@@ -73,7 +73,7 @@
m_originRouter.wireDecode(*val);
}
else {
- BOOST_THROW_EXCEPTION(Error("OriginRouter: Missing required Name field"));
+ NDN_THROW(Error("OriginRouter: Missing required Name field"));
}
++val;
@@ -83,14 +83,14 @@
++val;
}
else {
- BOOST_THROW_EXCEPTION(Error("Missing required SequenceNumber field"));
+ NDN_THROW(Error("Missing required SequenceNumber field"));
}
if (val != baseWire.elements_end() && val->type() == ndn::tlv::nlsr::ExpirationTime) {
m_expirationTimePoint = ndn::time::fromString(readString(*val));
}
else {
- BOOST_THROW_EXCEPTION(Error("Missing required ExpirationTimePoint field"));
+ NDN_THROW(Error("Missing required ExpirationTime field"));
}
}