?? generalfailureexception.java.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 + -