objectcreationexception.java

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

JAVA
53
字号
/* @LICENSE_COPYRIGHT@ */
package net.sf.irunninglog.util;

/**
 * Exception to be thrown by the <code>ObjectFactory</code> class if there
 * is any kind of failure while creating an object.  This exception subclasses
 * <code>RuntimeException</code> so that classes invoking the object factory do
 * not need to catch any exceptions.
 *
 * @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
 * @see ObjectFactory
 */
public class ObjectCreationException extends RuntimeException {

    /**
     * Create a new exception with no cause and no detail message.
     */
    public ObjectCreationException() {
        this(null, null);
    }

    /**
     * Create a new exception with the specified detail message.
     *
     * @param message The detail message for the exception
     */
    public ObjectCreationException(String message) {
        this(message, null);
    }

    /**
     * Create a new exception with the specified cause.
     *
     * @param cause The exception that caused this exception
     */
    public ObjectCreationException(Throwable cause) {
        this(null, cause);
    }

    /**
     * Create a new exception with the specified detail message and cause.
     *
     * @param message The detail message for the exception
     * @param cause The exception that caused this exception
     */
    public ObjectCreationException(String message, Throwable cause) {
        super(message, cause);
    }

}

⌨️ 快捷键说明

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