-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyaff.aspx.cs
32 lines (30 loc) · 995 Bytes
/
yaff.aspx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using mojoPortal.Web;
namespace yaf_mojo
{
public partial class YafModule : mojoBasePage
{
public void Page_Error(object sender, System.EventArgs e)
{
Exception x = Server.GetLastError();
string exceptionInfo = "";
while (x != null)
{
exceptionInfo += DateTime.Now.ToString("g");
exceptionInfo += " in " + x.Source + "\r\n";
exceptionInfo += x.Message + "\r\n" + x.StackTrace + "\r\n-----------------------------\r\n";
x = x.InnerException;
}
//yaf.DB.eventlog_create(forum.PageUserID, this, exceptionInfo);
yaf.Utils.LogToMail(x);
}
}
}