You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Yuxuan Wang (Jira)" <ji...@apache.org> on 2022/08/02 18:27:00 UTC
[jira] [Resolved] (THRIFT-5605) Go client middleware has no (easy) access to IDL exceptions
[ https://issues.apache.org/jira/browse/THRIFT-5605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yuxuan Wang resolved THRIFT-5605.
---------------------------------
Fix Version/s: 0.17.0
Resolution: Fixed
> Go client middleware has no (easy) access to IDL exceptions
> -----------------------------------------------------------
>
> Key: THRIFT-5605
> URL: https://issues.apache.org/jira/browse/THRIFT-5605
> Project: Thrift
> Issue Type: Bug
> Components: Go - Library
> Affects Versions: 0.16.0
> Reporter: Yuxuan Wang
> Assignee: Yuxuan Wang
> Priority: Minor
> Fix For: 0.17.0
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Similar to THRIFT-5527, this is the issue on the client side.
> But unlike THRIFT-5527, this cannot be resolved by a fix on the compiler code. We managed to write a [reflect based helper function|https://github.com/reddit/baseplate.go/blob/e34b108af09beab61f33126dfacf075ff58f5116/thriftbp/client_middlewares.go#L404-L443] to extract the IDL exceptions out of the result TStruct, I think upstream that helper function to be a provided ClientMiddleware would be helpful.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)