failedassertion.java

来自「赫夫曼编译码器: 用哈夫曼编码进行通信可以大大提高信道利用率」· Java 代码 · 共 26 行

JAVA
26
字号
package structure;/** * This error is thrown by the Assert class in the event of any failed * assertion test. Errors are thrown rather than exceptions because * failed assertions are assumed to be an indication of such * an egregious program failure that recovery is impossible. * * @version $Id: Assert.java,v 4.0 2000/12/27 20:57:33 bailey Exp bailey $ * @author, 2001 duane a. bailey * @see Assert#fail */class FailedAssertion extends Error{    /**     * Constructs an error indicating failure to meet condition.     *     * @post Constructs a new failed assertion error     *      * @param reason String describing failed condition.     */    public FailedAssertion(String reason)    {	super("\nAssertion that failed: " + reason);    }}

⌨️ 快捷键说明

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