protocolexception.java

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

JAVA
45
字号
// ProtocolException.java// $Id: ProtocolException.java,v 1.2 2000/08/16 21:37:53 ylafon Exp $// (c) COPYRIGHT MIT and INRIA, 1996.// Please first read the full copyright statement in file COPYRIGHT.htmlpackage org.w3c.tools.resources ;public class ProtocolException extends Exception {    String msg   = null ;    ReplyInterface  error = null ;    /**     * Was a reply provided with the exception ?     * @return True if a reply is available.     */    public boolean hasReply () {        return error != null  ;    }    /**     * Get this exception reply.     * @return The reply to send back to requesting process.     */    public ReplyInterface getReply() {        return error ;    }    public ProtocolException (String msg) {        super (msg) ;        this.error = null ;    }    public ProtocolException (String msg, ReplyInterface error) {        super (msg) ;        this.error = error ;    }    public ProtocolException (ReplyInterface error) {        super ((String) null) ;        this.error = error ;    }}

⌨️ 快捷键说明

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