thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James E. King III (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (THRIFT-237) Update Exception class generation to TException decendent
Date Sat, 09 Mar 2019 16:23:00 GMT

     [ 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
    Fix Version/s: 0.13.0

> 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: 0.13.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)

Mime
View raw message