Bruce Irschick created THRIFT-5838:
--------------------------------------

             Summary: 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


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)

Reply via email to