[
https://issues.apache.org/jira/browse/HTTPCLIENT-721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Roland Weber resolved HTTPCLIENT-721.
-------------------------------------
Resolution: Won't Fix
HttpException is used to indicate protocol errors (server sending invalid
data), while IOException is used to indicate communication problems (timeout,
server not responding). The two cases have fundamentally different causes and
may need different handling, so it is not a good idea to join them into the
same exception hierarchy.
Failed parsing of data received from a server certainly isn't a failed IO
operation. The IO operation succeeds, it's just the data that cannot be
interpreted correctly.
cheers,
Roland
> API: HttpException should inherit from IOException
> --------------------------------------------------
>
> Key: HTTPCLIENT-721
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-721
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Affects Versions: 4.0 Alpha 2
> Reporter: Jens Wike
>
> The description of IOException reads:
> * Signals that an I/O exception of some sort has occurred. This
> * class is the general class of exceptions produced by failed or
> * interrupted I/O operations.
> This means HttpException and its subclasses _is_ an I/O Exception
> by the definition above. There is no need to have a separate Exception
> hierarchy.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]