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

Thrift compiler code throws std::string to indicate an error, which is not safe

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.9.3, 0.10.0
    • None
    • Compiler (General)
    • None

    Description

      The thrift compiler code throws std::string to indicate an error. This does not conform to normal exception handling patterns, and is unsafe (as std::string can itself throw).

      Acceptance Criteria:

      1. The compiler uses exceptions derived from std::exception to indicate an exceptional issue.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jking3 James E. King III
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: