C#: Catch exceptions by name.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665631 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Reiss 2008-04-02 22:10:09 +00:00
parent 437c03bb3d
commit cee1e085b5
3 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ namespace Thrift.Server
while (processor.Process(inputProtocol, outputProtocol)) { }
}
}
catch (TTransportException ttx)
catch (TTransportException)
{
// Client died, just move on
}

View 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
}

View 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 + ".");