r1192@dev030 (orig r59869): dweatherford | 2007-09-15 01:49:48 -0700
[thrift] C++: Pass std::exception from server to client
Summary: Rather than an uncaught exception dropping the connection, catching std::exception (and anything derived from it) and passing its message payload back in the form of a T_EXCEPTION message is a much cleaner response.
Reviewed By: mcslee
Test Plan: compile generated code for Synapse's tablet interface, throw a generic exception at the server, observe the message for the exception arising from the client in the form of a TApplicationException (instead of the previous 'no more data to read' exception)
Revert: ok
git-svn-id: http://svn.facebook.com/svnroot/thrift/trunk@581 41a61cd8-c433-0410-bb1c-e256eeef9e11