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

📄 providerexception.java

📁 个人理财系统-fileutil的使用 是你的好帮手
💻 JAVA
字号:
package ar.com.koalas.providers;
/**
 * @author DZ156H
 */
public class ProviderException extends Exception {
    
	/** The root cause of this exception */
	protected Throwable cause;

	//~ Constructors -------------------------------------------------------------------------------
	/**
	 * Construct a <tt>ConfigurationException</tt>.
	 *
	 * @param message The exception detail message.
	 */
	public ProviderException(final String message) {
		super(message);
	}

	/**
	 * Construct a <tt>ConfigurationException</tt>.
	 *
	 * @param message The exception detail message.
	 * @param cause The detail cause of the exception.
	 */
	public ProviderException(final String message, final Throwable cause) {
		super(message);
		this.cause = cause;
	}

	/**
	 * Construct a <tt>ConfigurationException</tt>.
	 *
	 * @param cause The detail cause of the exception.
	 */
	public ProviderException(final Throwable cause) {
		super(cause.getMessage());
		this.cause = cause;
	}


	//~ Methods ------------------------------------------------------------------------------------
	/**
	 * Get the cause of the exception.
	 *
	 * @return The cause of the exception or null if there is none.
	 */
	public Throwable getCause() {
		return cause;
	}

	/**
	 * Return a string representation of the exception.
	 *
	 * @return A string representation.
	 */
	public String toString() {
		return (cause == null)
			? super.toString()
			: (super.toString() + ", Cause: " + cause);
	}
}

⌨️ 快捷键说明

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