[ https://issues.apache.org/jira/browse/THRIFT-5838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer updated THRIFT-5838: ------------------------------- Issue Type: Improvement (was: Bug) > THttpTransport.FlushAsync does not include original exception > ------------------------------------------------------------- > > Key: THRIFT-5838 > URL: https://issues.apache.org/jira/browse/THRIFT-5838 > Project: Thrift > Issue Type: Improvement > 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)