More informative exception when THTTPClient gets an unexpected response
-----------------------------------------------------------------------
Key: THRIFT-614
URL: https://issues.apache.org/jira/browse/THRIFT-614
Project: Thrift
Issue Type: Improvement
Reporter: Andrew McGeachie
Priority: Trivial
Attachments: thrift-614.patch
Currently, THTTPClient can only handle an NSHTTPURLResponse. For anything else
it throws an exception:
{code}
if (![response isKindOfClass: [NSHTTPURLResponse class]]) {
@throw [TTransportException exceptionWithName: @"TTransportException"
reason: @"Unexpected NSURLResponse
type"];
{code}
It would be nice if the exception included the actual NSURLResponse object that
was encountered, to aid debugging.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.