--- /dev/null
+// HttpAccessException.java\r
+// $Id: HttpAccessException.java,v 1.1 2010/06/15 12:19:52 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
+/**\r
+ * Invalid access to an HTTP message header.\r
+ * Invalid access to HTTP message headers can take several forms.\r
+ */\r
+\r
+public class HttpAccessException extends RuntimeException {\r
+\r
+ /**\r
+ * Invalid header index.\r
+ * @param idx The faulty header index.\r
+ */\r
+\r
+ public HttpAccessException(int idx) {\r
+ super(idx+": invalid header index.");\r
+ }\r
+\r
+ /**\r
+ * Invalid header name.\r
+ * @param name The name of the unknown header.\r
+ */\r
+\r
+ public HttpAccessException(String name) {\r
+ super(name+": invalid header name.");\r
+ }\r
+\r
+}\r