[ https://issues.apache.org/jira/browse/THRIFT-5838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17901274#comment-17901274 ]
Bruce Irschick commented on THRIFT-5838: ---------------------------------------- Added PR [THRIFT-5838: ensure original exception added to new exceptions by birschick-bq · Pull Request #3069 · apache/thrift|https://github.com/apache/thrift/pull/3069] > THttpTransport.FlushAsync does not include original exception > ------------------------------------------------------------- > > Key: THRIFT-5838 > URL: https://issues.apache.org/jira/browse/THRIFT-5838 > Project: Thrift > Issue Type: Bug > Components: netstd - Library > Affects Versions: 0.21.0 > Reporter: Bruce Irschick > Priority: Major > Original Estimate: 24h > Time Spent: 10m > Remaining Estimate: 23h 50m > > THttpTransport.FlushAsync does not include the original exception when > rethrowing. > As shown below ... > {code:java} > catch (IOException iox) > { > throw new > TTransportException(TTransportException.ExceptionType.Unknown, > iox.ToString()); > } > catch (HttpRequestException wx) > { > throw new > TTransportException(TTransportException.ExceptionType.Unknown, > "Couldn't connect to server: " + wx); > } > catch (Exception ex) > { > throw new > TTransportException(TTransportException.ExceptionType.Unknown, ex.Message); > } {code} > Could also handle the TaskCanceledException separately. -- This message was sent by Atlassian Jira (v8.20.10#820010)