// ClientException.java
// $Id: ClientException.java,v 1.2 1996/11/08 14:54:08 abaird Exp $
// (c) COPYRIGHT MIT and INRIA, 1996.
// Please first read the full copyright statement in file COPYRIGHT.html

package w3c.jigsaw.http;

/**
 * ClientException is used to terminate a channel with a specific client.
 * Each client is represented within the server by some Client instance
 * which is used to keep track of it.
 * When such a client context errs severly (ie IO errors, bad HTTP spoken, etc)
 * the connections has to be cleaned up and closed, that's the purpose of this
 * exception.
 * @see Client
 */

public class ClientException extends Exception {
    public Client    client = null ;
    public Exception ex     = null;

    public ClientException (Client client, String msg) {
	super (msg) ;
	this.client = client ;
    }

    public ClientException (Client client, Exception ex) {
	super (ex.getMessage()) ;
	this.client = client ;
	this.ex     = ex;
    }

}

