Thrift之TProcess类体系原理及源码详细解析
2012-06-03 15:50:17 来源:WEB开发网核心提示:} catch (const std::exception& e) {if (eventHandler_.get() != NULL) {eventHandler_->handlerError(ctx, "FacebookService.getName");//错误处理}//写入具体的异常到客
} catch (const std::exception& e) {
if (eventHandler_.get() != NULL) {
eventHandler_->handlerError(ctx, "FacebookService.getName");//错误处理
}
//写入具体的异常到客户端
::apache::thrift::TApplicationException x(e.what());
oprot->writeMessageBegin("getName", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->writeEnd();
oprot->getTransport()->flush();
更多精彩
赞助商链接