coreexception.java

来自「JAVA EXCEL操作API」· Java 代码 · 共 58 行

JAVA
58
字号
/*
 * Created on 2004-3-22
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package com.zosatapo.xls.core;
/**
 * @author zosatapo
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class CoreException extends RuntimeException
{
	// ----------------------------------------------------------- Constructors
	/**
	 * Construct a new exception with the specified message.
	 *
	 * @param message The message describing this exception
	 */
	public CoreException(String message)
	{
		super(message);
	}
	/**
	 * Construct a new exception with the specified message and root cause.
	 *
	 * @param message The message describing this exception
	 * @param cause The root cause of this exception
	 */
	public CoreException(String message, Throwable cause)
	{
		super(message);
		this.cause = cause;
	}
	/**
	 * Construct a new exception with the specified root cause.
	 *
	 * @param cause The root cause of this exception
	 */
	public CoreException(Throwable cause)
	{
		super(cause.getMessage());
		this.cause = cause;
	}
	// ------------------------------------------------------------- Properties
	/**
	 * The root cause of this <code>CoreException</code>, compatible with
	 * JDK 1.4's extensions to <code>java.lang.Throwable</code>.
	 */
	protected Throwable cause = null;
	public Throwable getCause()
	{
		return (this.cause);
	}
}

⌨️ 快捷键说明

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