?? sysexception.java
字號(hào):
package com.base;
public class SysException extends Exception
{
private String _strMessage;
private Throwable _rootCause;
public SysException()
{
_strMessage ="系統(tǒng)異常";
_rootCause = null;
}
public SysException( String msg)
{
_strMessage = msg;
_rootCause = null;
}
public SysException( Throwable cause)
{
_strMessage ="系統(tǒng)異常";
_rootCause = cause;
}
public SysException( String msg,Throwable cause)
{
_strMessage =msg;
_rootCause = cause;
}
public String getMessage()
{
String strMessage = "";
if( _strMessage!=null)
strMessage = _strMessage;
if( _rootCause!=null)
strMessage +="<br> throw Exception caused by:"+_rootCause.getMessage();
return strMessage;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -