1 package org.apache.turbine.modules; 2 3 56 57 import org.apache.turbine.Turbine; 58 import org.apache.turbine.RunData; 59 import org.apache.turbine.TemplateContext; 60 61 68 public class Error 69 extends Module 70 { 71 78 protected void doBuildTemplate( RunData data, 79 TemplateContext context ) 80 throws Exception  81 { 82 context.put("processingException",data.getStackTraceException().toString()); 83 context.put("stackTrace", data.getStackTrace()); 84 String errorTemplate = 85 Turbine.getConfiguration().getString("template.error","/Error.vm"); 86 setTemplate(data, errorTemplate); 87 } 88 } 89 | Popular Tags |