r1192@dev030 (orig r59869): dweatherford | 2007-09-15 01:49:48 -0700
commit1491a67dcd7f3d197e1abc61e9534a9cb9d00014
author(no author) <(no author)@41a61cd8-c433-0410-bb1c-e256eeef9e11>
Sat, 15 Sep 2007 08:36:50 +0000 (15 08:36 +0000)
committer(no author) <(no author)@41a61cd8-c433-0410-bb1c-e256eeef9e11>
Sat, 15 Sep 2007 08:36:50 +0000 (15 08:36 +0000)
tree940f65d964992aea66900b8b938050e9e6b33de8
parent2d9eb41aaf3d58c80e5512fd226613b65a221a9d
 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
compiler/cpp/src/generate/t_cpp_generator.cc