From cee1e085b56866b4feb9b334da5d5d8f0b79d44d Mon Sep 17 00:00:00 2001 From: David Reiss Date: Wed, 2 Apr 2008 22:10:09 +0000 Subject: [PATCH] C#: Catch exceptions by name. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665631 13f79535-47bb-0310-9956-ffa450edef68 --- lib/csharp/src/Server/TSimpleServer.cs | 2 +- lib/csharp/src/Server/TThreadPoolServer.cs | 2 +- lib/csharp/src/Transport/TServerSocket.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/csharp/src/Server/TSimpleServer.cs b/lib/csharp/src/Server/TSimpleServer.cs index f120dff1..0679bb2d 100644 --- a/lib/csharp/src/Server/TSimpleServer.cs +++ b/lib/csharp/src/Server/TSimpleServer.cs @@ -85,7 +85,7 @@ namespace Thrift.Server 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 f8ee355d..ac7aa8b0 100644 --- a/lib/csharp/src/Server/TThreadPoolServer.cs +++ b/lib/csharp/src/Server/TThreadPoolServer.cs @@ -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 } diff --git a/lib/csharp/src/Transport/TServerSocket.cs b/lib/csharp/src/Transport/TServerSocket.cs index 3b5c8dd0..33ada7ba 100644 --- a/lib/csharp/src/Transport/TServerSocket.cs +++ b/lib/csharp/src/Transport/TServerSocket.cs @@ -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 + "."); -- 2.17.1