Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 49613 invoked from network); 29 May 2008 18:40:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 May 2008 18:40:16 -0000 Received: (qmail 40121 invoked by uid 500); 29 May 2008 18:40:10 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 40098 invoked by uid 500); 29 May 2008 18:40:10 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 40087 invoked by uid 99); 29 May 2008 18:40:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 May 2008 11:40:10 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 May 2008 18:39:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 37046234C12D for ; Thu, 29 May 2008 11:39:45 -0700 (PDT) Message-ID: <1145319242.1212086385224.JavaMail.jira@brutus> Date: Thu, 29 May 2008 11:39:45 -0700 (PDT) From: "Sam Berlin (JIRA)" To: dev@hc.apache.org Subject: [jira] Updated: (HTTPCLIENT-779) toplevel exception cleanup In-Reply-To: <1586351514.1212086265303.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HTTPCLIENT-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Berlin updated HTTPCLIENT-779: ---------------------------------- Attachment: httpclient-exception-cleanup.txt patch attached. > toplevel exception cleanup > -------------------------- > > Key: HTTPCLIENT-779 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-779 > Project: HttpComponents HttpClient > Issue Type: Improvement > Affects Versions: 4.0 Alpha 4 > Reporter: Sam Berlin > Fix For: 4.0 Beta 1 > > Attachments: httpclient-exception-cleanup.txt > > > HttpClient.execute should throw only one exception, for easier general use. > HttpMethod constructors (HttpGet, HttpPut, etc..) should throw IllegalArgumentException in the string constructor (imply the string is pre-checked). People wanting to see a URIException can use 'new HttpGet(new URI(uri))' and trigger the exception from the explicit URI creation. -- 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: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org