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

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.9.3, 0.10.0
    • Fix Version/s: None
    • Component/s: Compiler (General)
    • Labels:
      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

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

                Dates

                • Created:
                  Updated: