📄 objectcreationexception.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 + -