/[Apache-SVN]
ViewVC logotype

Revision 665264


Jump to revision: Previous Next
Author: dweatherford
Date: Sat Sep 15 08:49:48 2007 UTC (17 years, 1 month ago)
Changed paths: 1
Log Message:
[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


Changed paths

Path Details
Directoryincubator/thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26