You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by je...@apache.org on 2002/09/23 09:01:52 UTC

cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpMultiClient.java

jericho     2002/09/23 00:01:52

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpMultiClient.java
  Log:
  - Remove "HttpMultiClient Catches IOException Twice"
  
  Patched by "Adrian Sutton" <ad...@ephox.com>
  Thank you.
  
  Revision  Changes    Path
  1.16      +4 -6      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMultiClient.java
  
  Index: HttpMultiClient.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMultiClient.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- HttpMultiClient.java	2 Sep 2002 14:52:48 -0000	1.15
  +++ HttpMultiClient.java	23 Sep 2002 07:01:52 -0000	1.16
  @@ -313,9 +313,7 @@
           try {
               status = method.execute(getState(), connection);
           } catch (IOException ex) {
  -            throw ex;
  -        } catch (HttpException ex) {
  -            throw ex;
  +            throw ex; // it might be IOException or HttpException instance.
           } finally {
               mgr.releaseConnection(connection);
           }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>