Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3215

TJSONProtocol '(c++) uses "throw new" to throw exceptions instead of "throw"

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.2
    • 0.9.3
    • C++ - Library
    • None
    • Patch Available

    Description

      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)".

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            roger Roger Meier
            cmhe Claudius Heine
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment