<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd" >
<head>
<title>Error</title>
</head>
<body>
Error: ${error}
</body>
</html>
package yourapp.tapestry.pages;
import org.apache.tapestry.services.ExceptionReporter;
public class ExceptionReport implements ExceptionReporter
{
private String error;
public void reportException(Throwable exception)
{
error = exception.getLocalizedMessage();
}
public String getError()
{
return error;
}
}
ExceptionReport.java
ExceptionReport.html
本文深入探讨了使用Apache Tapestry框架处理异常时的报告机制,详细介绍了ExceptionReport类的功能及其在捕获和展示异常信息过程中的作用。
180

被折叠的 条评论
为什么被折叠?



