commit | cee1e085b56866b4feb9b334da5d5d8f0b79d44d | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | Wed Apr 02 22:10:09 2008 +0000 |
committer | David Reiss <dreiss@apache.org> | Wed Apr 02 22:10:09 2008 +0000 |
tree | f09d026f0123f765ca8781f08e98138b812c83d6 | |
parent | 437c03bb3d8825bf64581869861c645b4f94908f [diff] |
C#: Catch exceptions by name. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665631 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/csharp/src/Server/TSimpleServer.cs b/lib/csharp/src/Server/TSimpleServer.cs index f120dff..0679bb2 100644 --- a/lib/csharp/src/Server/TSimpleServer.cs +++ b/lib/csharp/src/Server/TSimpleServer.cs
@@ -85,7 +85,7 @@ while (processor.Process(inputProtocol, outputProtocol)) { } } } - catch (TTransportException ttx) + catch (TTransportException) { // Client died, just move on }
diff --git a/lib/csharp/src/Server/TThreadPoolServer.cs b/lib/csharp/src/Server/TThreadPoolServer.cs index f8ee355..ac7aa8b 100644 --- a/lib/csharp/src/Server/TThreadPoolServer.cs +++ b/lib/csharp/src/Server/TThreadPoolServer.cs
@@ -140,7 +140,7 @@ //keep processing requests until client disconnects } } - catch (TTransportException ttx) + catch (TTransportException) { // Assume the client died and continue silently }
diff --git a/lib/csharp/src/Transport/TServerSocket.cs b/lib/csharp/src/Transport/TServerSocket.cs index 3b5c8dd..33ada7b 100644 --- a/lib/csharp/src/Transport/TServerSocket.cs +++ b/lib/csharp/src/Transport/TServerSocket.cs
@@ -70,7 +70,7 @@ // 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 + ".");