r1519@opsdev009 (orig r80499): mcslee | 2008-01-30 17:49:16 -0800
commit3b2ad91215634a876e340cd328f7ce327923056d
author(no author) <(no author)@41a61cd8-c433-0410-bb1c-e256eeef9e11>
Thu, 31 Jan 2008 01:54:11 +0000 (31 01:54 +0000)
committer(no author) <(no author)@41a61cd8-c433-0410-bb1c-e256eeef9e11>
Thu, 31 Jan 2008 01:54:11 +0000 (31 01:54 +0000)
treefaf2f051dab8bfda2a8601bee1034344226ace78
parent94d3ca1596ed4b0b0a0ec156d7524d950c010fbd
 r1519@opsdev009 (orig r80499):  mcslee | 2008-01-30 17:49:16 -0800
 Validate that throws clauses in Thrift contain only exceptions

 Summary: Throwing non-exceptions, though allowed in some languages, is a weird concept and causes problems in many places. Disallow it in the Thrift compiler and throw an informative error.

 Reviewed By: dreiss

 Test Plan: Generate a file with an int or something in a throws clause. Peep the nice informative compiler error.

git-svn-id: http://svn.facebook.com/svnroot/thrift/trunk@778 41a61cd8-c433-0410-bb1c-e256eeef9e11
compiler/cpp/src/main.cc
compiler/cpp/src/main.h
compiler/cpp/src/thrifty.yy