[ 
https://issues.apache.org/jira/browse/THRIFT-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13962477#comment-13962477
 ] 

James Haggerty commented on THRIFT-2452:
----------------------------------------

Thanks, Jens. Didn't check the comments in ThriftTest. You could get the same 
behaviour using a TException, but it seemed better to throw a generic Exception 
due to the intent of the test. Should this behaviour be added to the 
cross-platform test suite so it is possible to check the behaviour of 
unexpected Exceptions?

(AFAIK there's no testing of this behaviour in Java at the moment, which does 
implement it)

> Python doesn't handle unexpected Exceptions in server
> -----------------------------------------------------
>
>                 Key: THRIFT-2452
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2452
>             Project: Thrift
>          Issue Type: Bug
>          Components: Python - Compiler, Python - Library
>            Reporter: James Haggerty
>         Attachments: thrift-2452-python-unexpected-exceptions.patch
>
>
> Based on THRIFT-378, the appropriate behaviour is to throw a 
> TApplicationException with an INTERNAL_ERROR.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to