clientexception.java

来自「很棒的web服务器源代码」· Java 代码 · 共 38 行

JAVA
38
字号
// ClientException.java// $Id: ClientException.java,v 1.6 2000/08/16 21:37:40 ylafon Exp $// (c) COPYRIGHT MIT and INRIA, 1996.// Please first read the full copyright statement in file COPYRIGHT.htmlpackage org.w3c.jigsaw.http;import org.w3c.tools.resources.ResourceException;/** * 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 ResourceException {    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;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?