[
https://issues.apache.org/jira/browse/THRIFT-1347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jake Farrell closed THRIFT-1347.
--------------------------------
Resolution: Invalid
Fix Version/s: 1.0
Patch no longer applies to latest client lang version
> 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
> Fix For: 1.0
>
> 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