Saving the report form within an exception handler

delphi package - automated exception handling

Saving the report form within an exception handler

Postby russellweetch » Wed Feb 15, 2017 11:40 am

I'm sure I used to do this in an old application but can't find it now.

How do you force MadExcept to save the bug report within an exception handler? This is in a webbroker application. Do create a new exception e.g.

Try
....
Except
on E: Exception do
begin
MadExcept.NewException(etNormal, E).SaveBugReport(0);
//Do Other Stuff
end;
End;

Thanks.
russellweetch
 
Posts: 19
Joined: Mon Feb 07, 2011 3:39 pm

Re: Saving the report form within an exception handler

Postby madshi » Wed Feb 15, 2017 1:25 pm

What does "Do create a new exception" mean exactly? The grammar isn't clear to me.
madshi
Site Admin
 
Posts: 9338
Joined: Sun Mar 21, 2004 5:25 pm

Re: Saving the report form within an exception handler

Postby russellweetch » Thu Feb 16, 2017 10:28 am

I mean do I use the NewException function (as in the example I gave) or should I do something else?
russellweetch
 
Posts: 19
Joined: Mon Feb 07, 2011 3:39 pm

Re: Saving the report form within an exception handler

Postby madshi » Thu Feb 16, 2017 10:30 am

You could do it that way, or you could bypass some of the processing by calling madExcept.CreateBugReport() to get the bug report as a simple string, and then you can use nadExcept.AutoSaveBugReport or madExcept.SaveBugReport to save it.
madshi
Site Admin
 
Posts: 9338
Joined: Sun Mar 21, 2004 5:25 pm


Return to madExcept

Who is online

Users browsing this forum: No registered users and 3 guests

cron