[ https://issues.apache.org/jira/browse/THRIFT-237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer updated THRIFT-237: ------------------------------ Patch Info: (was: Patch Available) > Update Exception class generation to TException decendent > --------------------------------------------------------- > > Key: THRIFT-237 > URL: https://issues.apache.org/jira/browse/THRIFT-237 > Project: Thrift > Issue Type: Improvement > Components: C# - Compiler, Cocoa - Compiler, Java - Compiler, Python > - Compiler > Environment: Java > Reporter: Martin Smith > Priority: Trivial > Original Estimate: 4h > Remaining Estimate: 4h > > Make all generated Exception objects derived classes of TExceptions instead > of Exceptions. This allows callers to handle all errors of their service by > catching TException, eliminating the need for multiple catch blocks where not > required by the client code. > This follows the more recent patterns set for C++, PHP, Perl. > The languages affects are > Java, python, Cocoa, csharp > This could negatively affect code where the base exception class TException > is handled prior to the generated exception classes. > e.g. > try { > } catch (TException te) { > } catch (ThriftAppException tae) { > } > Patch available for Java, can build patches for python, cocoa and csharp at > the same time. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira