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.hpp b/src/name.hpp
index 03030f0..3a0cc52 100644
--- a/src/name.hpp
+++ b/src/name.hpp
@@ -23,13 +23,18 @@
 /**
  * A Name holds an array of Name::Component and represents an NDN name.
  */
-class Name : public ptr_lib::enable_shared_from_this<Name> {
+class Name : public ptr_lib::enable_shared_from_this<Name>
+{
 public:
-  /// @brief Error that can be thrown from the block
-  class Error : public name::Component::Error {
+  /// @brief Error that can be thrown from Name
+  class Error : public name::Component::Error
+  {
   public:
+    explicit
     Error(const std::string& what)
-      : name::Component::Error(what) {}
+      : name::Component::Error(what)
+    {
+    }
   };
 
   typedef name::Component Component;