diff --git a/src/helma/framework/ResponseTrans.java b/src/helma/framework/ResponseTrans.java index 98605b2e..2ceb1140 100644 --- a/src/helma/framework/ResponseTrans.java +++ b/src/helma/framework/ResponseTrans.java @@ -443,6 +443,22 @@ public final class ResponseTrans implements Serializable { response = what; } + /** + * Write a vanilla error report. Callers should make sure the ResponeTrans is + * new or has been reset. + * + * @param appName the application name + * @param message the error message + */ + public void writeErrorReport(String appName, String message) { + write("

"); + write("Error in application "); + write(appName); + write("

"); + write(message); + write(""); + } + /** * This has to be called after writing to this response has finished and before it is shipped back to the * web server. Transforms the string buffer into a char array to minimize size.