[
https://issues.apache.org/jira/browse/THRIFT-5838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Geyer reassigned THRIFT-5838:
----------------------------------
Assignee: Bruce Irschick (was: Jens Geyer)
> 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
> Assignee: Bruce Irschick
> Priority: Major
> Original Estimate: 24h
> Time Spent: 20m
> Remaining Estimate: 23h 40m
>
> 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)