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

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

    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

          People

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

            Dates

              Created:
              Updated:
              Resolved: