X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fcommand_server.cpp;h=21aeb798bfd420779292dcd498a1063e839b2a92;hp=2bb652191ca2d5e824c0d21447dde79439f1b5f1;hb=HEAD;hpb=19facd8558fe2e32ce843860b40631ebe03ff3cf diff --git a/src/command_server.cpp b/src/command_server.cpp index 2bb6521..21aeb79 100644 --- a/src/command_server.cpp +++ b/src/command_server.cpp @@ -37,9 +37,7 @@ on this file might be covered by the GNU General Public License. #include "container.hxx" #include "log.hxx" -#ifdef HAVE_CONFIG_H #include -#endif using namespace std; @@ -102,8 +100,6 @@ void command_server::handle_packet(const std::string& packet, server_connection* "code " << e.code << " (" << e.what() << ")"; res.set_exception(new t2n_serialization_error(msg.str())); } - catch(...) - { throw; } if (!res.has_exception()) { @@ -125,8 +121,6 @@ void command_server::handle_packet(const std::string& packet, server_connection* } catch (t2n_exception &e) { res.set_exception(e.clone()); } - catch (...) - { throw; } } else { @@ -154,8 +148,6 @@ void command_server::handle_packet(const std::string& packet, server_connection* res.set_exception(new t2n_serialization_error(msg.str())); oa << res; } - catch(...) - { throw; } std::ostream* ostr; if ((ostr=s.get_logstream(fulldebug))!=NULL) @@ -196,8 +188,6 @@ void command_server::handle(long long usec_timeout, long long* usec_timeout_rema // shut down a connection with transfer errors (usually write errors) conn->close(); } - catch(...) - { throw; } } } }