fatalruntimeexception.java

来自「A Java web application, based on Struts 」· Java 代码 · 共 41 行

JAVA
41
字号
/* @LICENSE_COPYRIGHT@ */package net.sf.irunninglog.util;/** * Application-specific runtime exception used to indicate that an * unrecoverable error has occurred.  This should be thrown from any places * where an error from which the application cannot recover has been * encountered where it does not make sense to throw a non-runtime * <code>Exception</code> instance. * * @author <a href="mailto:allan_e_lewis@yahoo.com">Allan Lewis</a> * @version $Revision: 1.1.1.1 $ $Date: 2005/06/23 01:49:03 $ * @since iRunningLog 1.0 */public class FatalRuntimeException extends RuntimeException {    /** Default message to be used as the exception's detail message. */    private static final String DEFAULT_MESSAGE =        "An unrecoverable application exception has occurred.";    /**     * Create a new exception.  The exception will be created using the     * default error message for this class.     */    public FatalRuntimeException() {        super(DEFAULT_MESSAGE);    }    /**     * Create a new exception, caused by a specified exception.  The exception     * will be created using the default error message, and will have the     * input exception as its cause.     *     * @param cause The exception that caused this exception     */    public FatalRuntimeException(Throwable cause) {        super(DEFAULT_MESSAGE, cause);    }}

⌨️ 快捷键说明

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