libt2n: (gerd) small fixes, hello unit tests
[libt2n] / src / server.cpp
index 6bc1cba..331bfc3 100644 (file)
  ***************************************************************************/
 
 #include <sstream>
+#include <stdexcept>
 
 #include <boost/bind.hpp>
 
 #include "server.hxx"
 #include "log.hxx"
-#include "t2n_exception.hxx"
 
 namespace libt2n
 {
@@ -96,7 +96,7 @@ void server_connection::reset_timeout()
 void server_connection::add_callback(callback_event_type event, const boost::function<void ()>& func)
 {
     if (event == new_connection)
-        throw t2n_parameter_error("new_connection callback not allowed for server_connections");
+        throw std::logic_error("new_connection callback not allowed for server_connections");
 
     callbacks[event].push_back(func);
 }