Adding JMCR-Stable version
[Benchmarks_CSolver.git] / JMCR-Stable / real-world application / jigsaw / src / org / w3c / www / http / HttpAccessException.java
diff --git a/JMCR-Stable/real-world application/jigsaw/src/org/w3c/www/http/HttpAccessException.java b/JMCR-Stable/real-world application/jigsaw/src/org/w3c/www/http/HttpAccessException.java
new file mode 100644 (file)
index 0000000..28a4d08
--- /dev/null
@@ -0,0 +1,33 @@
+// 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