C#: Catch exceptions by name.
authorDavid Reiss <dreiss@apache.org>
Wed, 2 Apr 2008 22:10:09 +0000 (22:10 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 2 Apr 2008 22:10:09 +0000 (22:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665631 13f79535-47bb-0310-9956-ffa450edef68

lib/csharp/src/Server/TSimpleServer.cs
lib/csharp/src/Server/TThreadPoolServer.cs
lib/csharp/src/Transport/TServerSocket.cs

index f120dff..0679bb2 100644 (file)
@@ -85,7 +85,7 @@ namespace Thrift.Server
                                                while (processor.Process(inputProtocol, outputProtocol)) { }
                                        }
                                }
-                               catch (TTransportException ttx)
+                               catch (TTransportException)
                                {
                                        // Client died, just move on
                                }
index f8ee355..ac7aa8b 100644 (file)
@@ -140,7 +140,7 @@ namespace Thrift.Server
                                        //keep processing requests until client disconnects
                                }
                        }
-                       catch (TTransportException ttx)
+                       catch (TTransportException)
                        {
                                // Assume the client died and continue silently
                        }
index 3b5c8dd..33ada7b 100644 (file)
@@ -70,7 +70,7 @@ namespace Thrift.Transport
                                // Make server socket
                                server = new TcpListener(System.Net.IPAddress.Any, this.port);
                        }
-                       catch (Exception e)
+                       catch (Exception)
                        {
                                server = null;
                                throw new TTransportException("Could not create ServerSocket on port " + port + ".");