Utils: Removed ErrnoException and implemented generic Exception base-class
[senf.git] / Examples / DVBAdapter / ULEdec.hh
index f73d424..60f757b 100644 (file)
@@ -65,13 +65,10 @@ private:
 };
 
 
-struct ULEdecException : public std::exception
+struct ULEdecException : public senf::Exception
 {
-    ULEdecException(char const * what) : what_(what) {};
-    ULEdecException(std::string const what) : what_(what) {};
-    virtual char const * what() const throw() { return what_.c_str(); }
-    virtual ~ULEdecException() throw() {};
-    std::string what_;
+    ULEdecException(std::string const & what) 
+        : senf::Exception(what) {}
 };