You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rw...@apache.org on 2001/12/04 22:47:57 UTC
cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpMethodBase.java
rwaldhoff 01/12/04 13:47:57
Modified: httpclient/src/java/org/apache/commons/httpclient
HttpMethodBase.java
Log:
more specific message in exception
Revision Changes Path
1.20 +5 -5 jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java
Index: HttpMethodBase.java
===================================================================
RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- HttpMethodBase.java 2001/11/15 23:00:37 1.19
+++ HttpMethodBase.java 2001/12/04 21:47:57 1.20
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v 1.19 2001/11/15 23:00:37 rwaldhoff Exp $
- * $Revision: 1.19 $
- * $Date: 2001/11/15 23:00:37 $
+ * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v 1.20 2001/12/04 21:47:57 rwaldhoff Exp $
+ * $Revision: 1.20 $
+ * $Date: 2001/12/04 21:47:57 $
* ====================================================================
*
* The Apache Software License, Version 1.1
@@ -109,7 +109,7 @@
*
* @author <a href="mailto:remm@apache.org">Remy Maucherat</a>
* @author Rodney Waldhoff
- * @version $Revision: 1.19 $ $Date: 2001/11/15 23:00:37 $
+ * @version $Revision: 1.20 $ $Date: 2001/12/04 21:47:57 $
*/
public abstract class HttpMethodBase implements HttpMethod {
@@ -870,7 +870,7 @@
statusLine = conn.readLine();
}
if(statusLine == null) {
- throw new HttpException("Error in parsing the status line from the response: null");
+ throw new HttpException("Error in parsing the status line from the response: unable to find line starting with \"HTTP/\"");
}
if((!statusLine.startsWith("HTTP/1.1") &&
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>