[ https://issues.apache.org/jira/browse/THRIFT-237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James E. King III closed THRIFT-237. ------------------------------------ Resolution: Cannot Reproduce Assignee: James E. King III Fix Version/s: 1.0 All languages derive generated exceptions from TException based on code inspection. > 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, Java - Compiler, Python - Compiler > Environment: Java > Reporter: Martin Smith > Assignee: James E. King III > Priority: Trivial > Fix For: 1.0 > > 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 was sent by Atlassian JIRA (v7.6.3#76005)