⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 objectcreationexception.java

📁 A Java web application, based on Struts and Hibernate, that serves as an online running log. Users m
💻 JAVA
字号:
/* @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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -