***************************************************************************/
#include <sstream>
+#include <stdexcept>
#include <boost/bind.hpp>
#include "server.hxx"
#include "log.hxx"
-#include "t2n_exception.hxx"
namespace libt2n
{
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);
}