// HttpAccessException.java
// $Id: HttpAccessException.java,v 1.2 1998/01/22 14:27:05 bmahe Exp $
// (c) COPYRIGHT MIT and INRIA, 1996.
// Please first read the full copyright statement in file COPYRIGHT.html

package org.w3c.www.http;

/**
 * Invalid access to an HTTP message header.
 * Invalid access to HTTP message headers can take several forms.
 */

public class HttpAccessException extends RuntimeException {

    /**
     * Invalid header index.
     * @param idx The faulty header index.
     */

    public HttpAccessException(int idx) {
	super(idx+": invalid header index.");
    }

    /**
     * Invalid header name.
     * @param name The name of the unknown header.
     */

    public HttpAccessException(String name) {
	super(name+": invalid header name.");
    }


}
