01: // HttpAccessException.java
02: // $Id: HttpAccessException.java,v 1.3 2000/08/16 21:37:59 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: /**
09: * Invalid access to an HTTP message header.
10: * Invalid access to HTTP message headers can take several forms.
11: */
12:
13: public class HttpAccessException extends RuntimeException {
14:
15: /**
16: * Invalid header index.
17: * @param idx The faulty header index.
18: */
19:
20: public HttpAccessException(int idx) {
21: super (idx + ": invalid header index.");
22: }
23:
24: /**
25: * Invalid header name.
26: * @param name The name of the unknown header.
27: */
28:
29: public HttpAccessException(String name) {
30: super (name + ": invalid header name.");
31: }
32:
33: }
|