📄 execfunctionfailexception.java
字号:
/****************************************************************************
* Package : com.ecSolutions.ecAppServer.appSession
* File : ExecFunctionFailException.java
* Create Date : 2007-7-22
* Author : Steven Chen
*
* Copyright(C) 2006 ecSolutions(shanghai) Co.,Limited.All Rights Reserved.
*
***************************************************************************/
package com.ecSolutions.ecAppServer.appSession;
public class ExecFunctionFailException extends Exception{
private Throwable cause = null;
public ExecFunctionFailException(String msg) {
super(msg);
}
public ExecFunctionFailException(Throwable cause) {
super();
this.cause = cause;
}
public ExecFunctionFailException(String msg, Throwable cause) {
super(msg);
this.cause = cause;
}
/**
* Gets the causing exception, if any.
*/
public Throwable getCausedByException() {
return cause;
}
public String toString() {
if (cause == null) {
return super.toString();
} else {
return super.toString() + " <---- Caused by: " + cause.toString() + " ---->";
}
}
public void printStackTrace() {
super.printStackTrace();
if (cause != null) {
System.err.println("<---- Caused by:");
cause.printStackTrace();
System.err.println("---->");
}
}
public void printStackTrace(java.io.PrintStream ps) {
super.printStackTrace(ps);
if (cause != null) {
ps.println("<---- Caused by:");
cause.printStackTrace(ps);
ps.println("---->");
}
}
public void printStackTrace(java.io.PrintWriter pw) {
super.printStackTrace(pw);
if (cause != null) {
pw.println("<---- Caused by:");
cause.printStackTrace(pw);
pw.println("---->");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -