BrightSide Workbench Full Report + Source Code
org.turro.error.MailError Class Reference

Public Member Functions

 MailError (ErrorReport errorReport, String doing)
 
void sendEmail (Application app)
 

Static Public Member Functions

static MailError getInstance (Class jclass, Throwable error, String msg)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 32 of file MailError.java.

Constructor & Destructor Documentation

◆ MailError()

org.turro.error.MailError.MailError ( ErrorReport  errorReport,
String  doing 
)

Definition at line 38 of file MailError.java.

38  {
39  this.errorReport = errorReport;
40  this.doing = doing;
41  }

Member Function Documentation

◆ getInstance()

static MailError org.turro.error.MailError.getInstance ( Class  jclass,
Throwable  error,
String  msg 
)
static

Definition at line 95 of file MailError.java.

95  {
96  ErrorReport errorReport = new ErrorReport(0, jclass, error.getMessage(), error, null, null);
97  return new org.turro.error.MailError(errorReport, ElephantContext.getSiteName() + ":" + msg);
98  }
Here is the call graph for this function:

◆ sendEmail()

void org.turro.error.MailError.sendEmail ( Application  app)

Definition at line 43 of file MailError.java.

43  {
44  this.app = app;
45  IConstructor constructor = app.getConstructor();
46  MailSenders.getPool()
47  .addUser("Support", "support@turro.org")
48  .send("Bug notification", getMessage());
49  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: