error.java
来自「appfuse一套结合STRUTS+SPRING+HIBERNATE的框架」· Java 代码 · 共 24 行
JAVA
24 行
package org.appfuse.webapp.action;
import org.apache.tapestry.pages.Exception;
/**
* A customized exception page; in non-debug mode, it omits displays the main exception display.
*/
public abstract class Error extends Exception {
public abstract String getError();
public abstract void setError(String value);
public void setException(Throwable value) {
super.setException(value);
String message = value.getMessage();
if (message == null)
message = value.getClass().getName();
setError(message);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?