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/name-component.hpp b/src/name-component.hpp
index 5e5cb09..ff13346 100644
--- a/src/name-component.hpp
+++ b/src/name-component.hpp
@@ -25,14 +25,14 @@
{
public:
/**
- * @brief Error that can be thrown from the block
+ * @brief Error that can be thrown from name::Component
*/
- class Error : public std::runtime_error
+ class Error : public Block::Error
{
public:
explicit
Error(const std::string& what)
- : std::runtime_error(what)
+ : Block::Error(what)
{
}
};