Don't catch unknown exceptions if we are only going to rethrow them.
[libt2n] / src / command_client.cpp
index 9945a5a..5d618b2 100644 (file)
@@ -72,10 +72,6 @@ command_client::command_client(client_connection* _c, long long _command_timeout
             // store a copy of the exception that you can find out details about the error later
             constructorException = e.clone();
         }
-        catch (...)
-        {
-            throw;
-        }
     }
 }
 
@@ -271,8 +267,6 @@ void command_client::send_command(command* cmd, result_container &res)
         msg << "archive_exception while serializing on client-side, code " << e.code << " (" << e.what() << ")";
         throw t2n_serialization_error(msg.str());
     }
-    catch(...)
-        { throw; }
 
     std::ostream* ostr;
     if ((ostr=c->get_logstream(fulldebug))!=NULL)
@@ -297,8 +291,6 @@ void command_client::send_command(command* cmd, result_container &res)
         msg << "archive_exception while deserializing on client-side, code " << e.code << " (" << e.what() << ")";
         throw t2n_serialization_error(msg.str());
     }
-    catch(...)
-        { throw; }
 
     if ((ostr=c->get_logstream(fulldebug))!=NULL)
     {