Exception Text as Message Text

delphi package - automated exception handling
Post Reply
hugie
Posts: 3
Joined: Tue Oct 29, 2013 4:24 pm

Exception Text as Message Text

Post by hugie »

Hi there,

Is there a possibility to show the MadExcept exception catcher dialog with the exception text as main message text?

If not, can you add an option in the configuration to show this as main text?

Background:
Due to some legacy-code design decisions we are using exception messages to show them to the user as UI Informations/feedback.
Since this now gets handled by MadExcept, the User will not understand the message anymore. Only the Generic "An error has occured" is visible.

Thank you very much.
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Re: Exception Text as Message Text

Post by madshi »

Sure it's possible. See here:

http://help.madshi.net/madExceptSettings10.htm

Look for "%exceptMsg%".
hugie
Posts: 3
Joined: Tue Oct 29, 2013 4:24 pm

Re: Exception Text as Message Text

Post by hugie »

Wow, awesome :)

a) your reply time
b) your product ;)

Thank you very much.
DPerkins
Posts: 9
Joined: Thu May 20, 2004 10:58 am

Re: Exception Text as Message Text

Post by DPerkins »

It would also be useful to change the email sender's name. At present it says:

madexcept - <account anme I entered>

and to use any of the Bug Report Header items as vars. I could then insert my customer's name as the sender of the bug.

EDIT: Also, can the %exceptClass% variable contain 'Frozen' if a freeze was detected? At present it says 'Unknown'
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Re: Exception Text as Message Text

Post by madshi »

DPerkins wrote:It would also be useful to change the email sender's name. At present it says:

madexcept - <account anme I entered>

and to use any of the Bug Report Header items as vars. I could then insert my customer's name as the sender of the bug.

EDIT: Also, can the %exceptClass% variable contain 'Frozen' if a freeze was detected? At present it says 'Unknown'
You can change the email sender by modifying "exceptIntf.MailFrom" in a little exception handler. You can access the bug report header items by using "exceptIntf.BugReportHeader['field name']". I'll look into "%exceptClass%" for freezes, should be easy to fix.
DPerkins
Posts: 9
Joined: Thu May 20, 2004 10:58 am

Re: Exception Text as Message Text

Post by DPerkins »

>> I'll look into "%exceptClass%" for freezes, should be easy to fix.

Any progress on this (we're having a number of freezes), or am I being too optimistic :wink:
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Re: Exception Text as Message Text

Post by madshi »

Should already be fixed in the latest beta:

http://madshi.net/madCollectionBeta.exe (installer 2.7.8.11)

The fix will also be in the next release build, hopefully later this week.
DPerkins
Posts: 9
Joined: Thu May 20, 2004 10:58 am

Re: Exception Text as Message Text

Post by DPerkins »

Great, thanks.
DPerkins
Posts: 9
Joined: Thu May 20, 2004 10:58 am

Re: Exception Text as Message Text

Post by DPerkins »

Is there a variable like %exceptClass% %exceptMsg% for the 'exception number' property as we'd like to add that to the subject too.
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Re: Exception Text as Message Text

Post by madshi »

No, but you can read it in an exception handler by accessing "exceptIntf.BugReportHeader".
Post Reply