libt2n: (gerd) finish server callbacks
[libt2n] / src / t2n_exception.hxx
index 4ce11aa..a494c86 100644 (file)
@@ -206,6 +206,29 @@ class t2n_command_error : public t2n_exception
             { throw *this; }
 };
 
+/// illegal libt2n option set
+class t2n_parameter_error : public t2n_exception
+{
+    private:
+        friend class boost::serialization::access;
+        template<class Archive>
+        void serialize(Archive & ar, const unsigned int version);
+
+    public:
+        t2n_parameter_error(const std::string& _message)
+            : t2n_exception(_message)
+            { }
+
+        t2n_parameter_error()
+            { }
+
+        t2n_exception* clone() const
+            { return new t2n_parameter_error(*this); }
+
+        void do_throw()
+            { throw *this; }
+};
+
 /// error serializing or deserializing a libt2n command packet
 class t2n_serialization_error : public t2n_exception
 {