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

📄 generalfailureexception.java.svn-base

📁 一个timesheet程序,用来统计开发人员的度量衡web在线程序.用于软件行业
💻 SVN-BASE
字号:
package com.nsi.control.exceptions;

/**
 * @author Chris Ye, created on Sep 29, 2008
 *
 * GeneralFailureException
 */
public class GeneralFailureException extends RuntimeException
{
	private static final long serialVersionUID = -3351487377477768796L;
	private Throwable trex;
	/**
	 *  constructor of GeneralFailureException.
	 */
	public GeneralFailureException(String s)
	{
		super(s);
	}
	/**
	 * constructor of GeneralFailureException.
	 */
	public GeneralFailureException(String s, Throwable trex)
	{
		super(s);
		this.trex = trex;
	}
	/**
	 * @return java.lang.String
	 */
	public String getThrowable()
	{
		return ("Received throwable with Message: " + trex.getMessage());
	}
	public String toString()
	{
		if( trex != null )
		{
			StringBuffer sb = new StringBuffer();
			sb.append( super.toString() ).append( " , " ).append( trex.toString() );
			return sb.toString();
		} 
		else
		{
			return super.toString();
		}
	}
}

⌨️ 快捷键说明

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