--- /dev/null
+// HttpParserException.java\r
+// $Id: HttpParserException.java,v 1.1 2010/06/15 12:19:49 smhuang Exp $\r
+// (c) COPYRIGHT MIT and INRIA, 1996.\r
+// Please first read the full copyright statement in file COPYRIGHT.html\r
+\r
+package org.w3c.www.http;\r
+\r
+import org.w3c.www.mime.MimeParserException;\r
+\r
+public class HttpParserException extends MimeParserException {\r
+\r
+ HttpRequestMessage req = null;\r
+\r
+ public boolean hasRequest() {\r
+ return (req != null);\r
+ }\r
+\r
+ public HttpRequestMessage getRequest() {\r
+ return req;\r
+ }\r
+\r
+ public HttpParserException(String msg) {\r
+ super(msg);\r
+ }\r
+\r
+ public HttpParserException(String msg, HttpRequestMessage req) {\r
+ super(msg);\r
+ this.req = req;\r
+ }\r
+}\r