01: // HttpParserException.java
02: // $Id: HttpParserException.java,v 1.6 2000/08/16 21:38:00 ylafon Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1996.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.www.http;
07:
08: import org.w3c.www.mime.MimeParserException;
09:
10: public class HttpParserException extends MimeParserException {
11:
12: HttpRequestMessage req = null;
13:
14: public boolean hasRequest() {
15: return (req != null);
16: }
17:
18: public HttpRequestMessage getRequest() {
19: return req;
20: }
21:
22: public HttpParserException(String msg) {
23: super (msg);
24: }
25:
26: public HttpParserException(String msg, HttpRequestMessage req) {
27: super(msg);
28: this.req = req;
29: }
30: }
|