ix user-defined exception generation in thrift (python)

--------------------------------------------------------

                 Key: THRIFT-1373
                 URL: https://issues.apache.org/jira/browse/THRIFT-1373
             Project: Thrift
          Issue Type: Improvement
          Components: C++ - Library
            Reporter: Dave Watson
            Priority: Minor
         Attachments: 
0001-Fix-user-defined-exception-generation-in-thrift-pyth.patch

>From 85a1ebf8d439ccb71db2c2fd586949f563339be7 Mon Sep 17 00:00:00 2001
From: Doug Ihde <di...@fb.com>
Date: Fri, 29 Jan 2010 19:45:23 +0000
Subject: [PATCH 1/9] Fix user-defined exception generation in thrift (python)

Summary: Fixed python code generation so that user-defined exceptions have a
         base class of TException rather than Exception.



Test Plan: Build [a facebook project] which is a python test
           client. Run the test client with
           invalid args so that the server throws an exception. Ensure
           that exception is properly returned to the test client
           with the "message" field set and without warning
           "Exception.message has been deprecated in Python 2.6".




Conflicts:

        compiler/cpp/src/generate/t_py_generator.cc
---
 compiler/cpp/src/generate/t_py_generator.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to