EntityUtils.toString() should throw a different exception when the payload is 
out of range
------------------------------------------------------------------------------------------

                 Key: HTTPCORE-234
                 URL: https://issues.apache.org/jira/browse/HTTPCORE-234
             Project: HttpComponents HttpCore
          Issue Type: Improvement
          Components: Examples
    Affects Versions: 4.0.1
            Reporter: Steve Loughran


Looking at the code, I can see that {{EntityUtils.toString()}} throws an 
{{IllegalArgumentException}} if the entity's content-length is >MAX_INT. But 
that's not technically a bad parameter, it's that the response is out of range. 
More of an IOException or ParseException, rather than a RunTime exception which 
a lot of code isn't going to expect to have to catch. 

-- 
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]

Reply via email to