01: // ClientException.java
02: // $Id: ClientException.java,v 1.7 2004/08/10 13:56:26 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.jigsaw.http;
07:
08: import org.w3c.tools.resources.ResourceException;
09:
10: /**
11: * ClientException is used to terminate a channel with a specific client.
12: * Each client is represented within the server by some Client instance
13: * which is used to keep track of it.
14: * When such a client context errs severly (ie IO errors, bad HTTP spoken, etc)
15: * the connections has to be cleaned up and closed, that's the purpose of this
16: * exception.
17: * @see Client
18: */
19:
20: public class ClientException extends ResourceException {
21: public Client client = null;
22: public Exception ex = null;
23:
24: public ClientException(Client client, String msg) {
25: super (msg);
26: this .client = client;
27: }
28:
29: public ClientException(Client client, Exception ex) {
30: super (ex.getMessage());
31: this .client = client;
32: this .ex = ex;
33: }
34:
35: public ClientException(Client client, Exception ex, String msg) {
36: super(msg);
37: this.client = client;
38: this.ex = ex;
39: }
40: }
|