Possible to view exception line in email header?

delphi package - automated exception handling
Post Reply
mikextpg
Posts: 7
Joined: Fri Jun 12, 2015 7:52 pm

Possible to view exception line in email header?

Post by mikextpg »

All our error emails are coming in with one common subject "An Exception Error occurred in WINSYSPR.exe"
We are getting overwhelmed with duplicate email subject lines which are all the same error.

Question 1
Is is possible to configure the email subject to: "WinSys Error: " + the actual error line ??
Since we have 150 users, this would make it much easier to distinguish the duplicates.

Question 2
If not in the subject line, can we put the error line in the body?
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Possible to view exception line in email header?

Post by madshi »

You can do pretty much "everything" in a small exception handler. E.g. see here:

http://help.madshi.net/MESettings.htm#I ... ailSubject

In your handler you can then do "exceptIntf.MailSubject := 'whatever you like';". So how do you get the actual error line? You can use "exceptIntf.Callstacks" for that. See here:

http://help.madshi.net/madExceptUnit.ht ... Callstacks

I'd suggest to use RegisterExceptActionHandler() and then if "action = eaSendBugReport", change the MailSubject.
mikextpg
Posts: 7
Joined: Fri Jun 12, 2015 7:52 pm

Re: Possible to view exception line in email header?

Post by mikextpg »

Very nice. Thank you.
Post Reply