[ https://issues.apache.org/jira/browse/THRIFT-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14618505#comment-14618505 ]
ASF GitHub Bot commented on THRIFT-3215: ---------------------------------------- Github user cmhe closed the pull request at: https://github.com/apache/thrift/pull/536 > TJSONProtocol '(c++) uses "throw new" to throw exceptions instead of "throw" > ---------------------------------------------------------------------------- > > Key: THRIFT-3215 > URL: https://issues.apache.org/jira/browse/THRIFT-3215 > Project: Thrift > Issue Type: Bug > Components: C++ - Library > Affects Versions: 0.9.2 > Reporter: Claudius Heine > Assignee: Roger Meier > Fix For: 0.9.3 > > > The C++ implementation of the TJSONProtocol throws TProtocolExceptions via > "throw new TProtocolException". > To catch those exceptions you need to "catch (TProtocolException* e)" instead > of "catch (TProtocolException& e)". -- This message was sent by Atlassian JIRA (v6.3.4#6332)