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

Travis Cline commented on THRIFT-1347:
--------------------------------------

This patch is outdated (os.Error doesn't exist anymore for example).
                
> Unify the exceptions returned in generated Go code
> --------------------------------------------------
>
>                 Key: THRIFT-1347
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1347
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Go - Compiler
>    Affects Versions: 0.7
>            Reporter: Tonnerre Lombard
>         Attachments: thrift-go-single-error-type.patch
>
>
> The code generated by the Go compiler is quite awful; every type of exception 
> that can be thrown creates an additional return value, so in the end any call 
> looks like
> ret, exA, exB, exC, exD, exE, exF, err = rpc.DoSomething(bla);
> Since err is of type os.Error, which should cover all types of exceptions, 
> the attached patch should make the interface significantly more sane by 
> reducing the amount of different return values.

--
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

Reply via email to