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/encoding/block.hpp b/src/encoding/block.hpp
index 8079531..6777f77 100644
--- a/src/encoding/block.hpp
+++ b/src/encoding/block.hpp
@@ -30,7 +30,7 @@
typedef element_container::iterator element_iterator;
typedef element_container::const_iterator element_const_iterator;
- /// @brief Error that can be thrown from the block
+ /// @brief Error that can be thrown from Block
class Error : public Tlv::Error
{
public:
@@ -53,7 +53,8 @@
Block(const EncodingBuffer& buffer);
/**
- * @brief A helper version of a constructor to create Block from the raw buffer (type and value-length parsing)
+ * @brief A helper version of a constructor to create Block from the raw buffer (type
+ * and value-length parsing)
*
* This constructor provides ability of implicit conversion from ConstBufferPtr to Block
*/
@@ -70,7 +71,8 @@
bool verifyLength = true);
/**
- * @brief A helper version of a constructor to create Block from the raw buffer (type and value-length parsing)
+ * @brief A helper version of a constructor to create Block from the raw buffer (type
+ * and value-length parsing)
*/
Block(const uint8_t* buffer, size_t maxlength);