You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roger Meier (JIRA)" <ji...@apache.org> on 2015/07/08 11:29:07 UTC
[jira] [Resolved] (THRIFT-3215) TJSONProtocol '(c++) uses "throw
new" to throw exceptions instead of "throw"
[ https://issues.apache.org/jira/browse/THRIFT-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roger Meier resolved THRIFT-3215.
---------------------------------
Resolution: Fixed
Assignee: Roger Meier
Fix Version/s: 0.9.3
Thanks Claudius!
just committed
> 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)