security: Adding Error in CertificateExtension

Change-Id: I9ffb13a0db438513707adc9568ea52d1bf2e33bf
diff --git a/include/ndn-cpp/security/certificate/certificate-extension.hpp b/include/ndn-cpp/security/certificate/certificate-extension.hpp
index d979d44..c212216 100644
--- a/include/ndn-cpp/security/certificate/certificate-extension.hpp
+++ b/include/ndn-cpp/security/certificate/certificate-extension.hpp
@@ -23,6 +23,8 @@
 class CertificateExtension
 {
 public:
+  struct Error : public std::runtime_error { Error(const std::string &what) : std::runtime_error(what) {} };
+
   CertificateExtension(CryptoPP::BufferedTransformation &in)
   {
     decode(in);