libt2n: (tomj) doxygen support
[libt2n] / src / t2n_exception.hxx
index c756b09..2be0fc5 100644 (file)
@@ -22,8 +22,8 @@
 #include <stdexcept>
 #include <string>
 
+#include <boost/serialization/serialization.hpp>
 #include <boost/serialization/export.hpp>
-#include <boost/serialization/tracking.hpp>
 
 // serialization for std::exception
 namespace boost {
@@ -40,11 +40,14 @@ void serialize(Archive & ar, std::exception & g, const unsigned int version)
 namespace libt2n
 {
 
+/**
+    generic libt2n exception
+*/
 // a generic exception that can be handeled with libt2n
 class t2n_exception : public std::exception
 {
     private:
-        string message;
+        std::string message;
 
         friend class boost::serialization::access;
         template<class Archive>
@@ -55,7 +58,7 @@ class t2n_exception : public std::exception
         }
 
     public:
-        t2n_exception(const string& _message)
+        t2n_exception(const std::string& _message)
             { message=_message; }
 
         t2n_exception()
@@ -87,14 +90,14 @@ class t2n_communication_error : public t2n_exception
         }
 
     public:
-        t2n_communication_error(const string& _message)
+        t2n_communication_error(const std::string& _message)
             : t2n_exception(_message)
             { }
 
         t2n_communication_error()
             { }
 
-        ipc_exception* clone() const
+        t2n_exception* clone() const
             { return new t2n_communication_error(*this); }
 
         void do_throw()
@@ -114,14 +117,14 @@ class t2n_connect_error : public t2n_communication_error
         }
 
     public:
-        t2n_connect_error(const string& _message)
+        t2n_connect_error(const std::string& _message)
             : t2n_communication_error(_message)
             { }
 
         t2n_connect_error()
             { }
 
-        ipc_exception* clone() const
+        t2n_exception* clone() const
             { return new t2n_connect_error(*this); }
 
         void do_throw()
@@ -141,14 +144,14 @@ class t2n_server_error : public t2n_communication_error
         }
 
     public:
-        t2n_server_error(const string& _message)
+        t2n_server_error(const std::string& _message)
             : t2n_communication_error(_message)
             { }
 
         t2n_server_error()
             { }
 
-        ipc_exception* clone() const
+        t2n_exception* clone() const
             { return new t2n_server_error(*this); }
 
         void do_throw()
@@ -168,14 +171,14 @@ class t2n_transfer_error : public t2n_communication_error
         }
 
     public:
-        t2n_transfer_error(const string& _message)
+        t2n_transfer_error(const std::string& _message)
             : t2n_communication_error(_message)
             { }
 
         t2n_transfer_error()
             { }
 
-        ipc_exception* clone() const
+        t2n_exception* clone() const
             { return new t2n_transfer_error(*this); }
 
         void do_throw()
@@ -195,14 +198,14 @@ class t2n_version_mismatch : public t2n_communication_error
         }
 
     public:
-        t2n_version_mismatch(const string& _message)
+        t2n_version_mismatch(const std::string& _message)
             : t2n_communication_error(_message)
             { }
 
         t2n_version_mismatch()
             { }
 
-        ipc_exception* clone() const
+        t2n_exception* clone() const
             { return new t2n_version_mismatch(*this); }
 
         void do_throw()
@@ -222,14 +225,14 @@ class t2n_command_error : public t2n_exception
         }
 
     public:
-        t2n_command_error(const string& _message)
+        t2n_command_error(const std::string& _message)
             : t2n_exception(_message)
             { }
 
         t2n_command_error()
             { }
 
-        ipc_exception* clone() const
+        t2n_exception* clone() const
             { return new t2n_command_error(*this); }
 
         void do_throw()
@@ -249,14 +252,14 @@ class t2n_serialization_error : public t2n_exception
         }
 
     public:
-        t2n_serialization_error(const string& _message)
+        t2n_serialization_error(const std::string& _message)
             : t2n_exception(_message)
             { }
 
         t2n_serialization_error()
             { }
 
-        ipc_exception* clone() const
+        t2n_exception* clone() const
             { return new t2n_serialization_error(*this); }
 
         void do_throw()
@@ -277,14 +280,14 @@ class t2n_runtime_error : public t2n_exception
         }
 
     public:
-        t2n_runtime_error(const string& _message)
+        t2n_runtime_error(const std::string& _message)
             : t2n_exception(_message)
             { }
 
         t2n_runtime_error()
             { }
 
-        ipc_exception* clone() const
+        t2n_exception* clone() const
             { return new t2n_runtime_error(*this); }
 
         void do_throw()