exceptions: Make Tlv::Error a base class for all packet-processing exceptions
This commit also includes a number of code style fixes.
Change-Id: I44f83915e733b43d5f43b4266902c8262e928d91
Refs: #1528
diff --git a/src/security/conf/filter.hpp b/src/security/conf/filter.hpp
index 7d5b833..4145222 100644
--- a/src/security/conf/filter.hpp
+++ b/src/security/conf/filter.hpp
@@ -207,7 +207,7 @@
{
return shared_ptr<RegexNameFilter>(new RegexNameFilter(regexString));
}
- catch (const Regex::Error& e)
+ catch (Regex::Error& e)
{
throw Error("Wrong filter.regex: " + regexString);
}