18 package org.turro.error;
20 import org.turro.action.MailSenders;
21 import org.turro.elephant.context.Application;
22 import org.turro.elephant.context.ElephantContext;
23 import org.turro.elephant.context.IConstructor;
24 import org.turro.elephant.security.IUser;
25 import org.turro.mail.impl.MailReport;
26 import org.turro.plugin.contacts.IContact;
34 private ErrorReport errorReport;
38 public MailError(ErrorReport errorReport, String doing) {
39 this.errorReport = errorReport;
47 .
addUser(
"Support",
"support@turro.org")
48 .send(
"Bug notification", getMessage());
51 private String getMessage() {
58 .
write(
"BrightSide Workbench")
86 for(String s : errorReport) {
96 ErrorReport errorReport =
new ErrorReport(0, jclass, error.getMessage(), error,
null,
null);
static IMailSender getPool()
IConstructor getConstructor()
static String getSiteName()
static String getServerUrl(String scheme)
static MailError getInstance(Class jclass, Throwable error, String msg)
MailError(ErrorReport errorReport, String doing)
void sendEmail(Application app)
HTMLGenerator endAllTags()
HTMLGenerator write(String value)
HTMLGenerator writeNewLine()
HTMLGenerator startTitle()
HTMLGenerator startDetailContent()
HTMLGenerator addValue(String value)
HTMLGenerator startHeading1()
HTMLGenerator startReport()
HTMLGenerator addValueLabel(String label)
static final String CONNECTOR_EMAIL
String getProperty(String key)