Is there a way to add information to an error object that relevant to an application administrator / developer in a way that is not immediately shown to the enduser ?
It could be shown in the call stack part of the message dialog.
Use case : I created a FileNotFoundException and want to add current directory and propath info.
I tried AddMessage to add additional messages but these are all shown directly to the enduser.
I thought of some options
- * modify the message dialog to only show the first message by default and add a button to display the extra info
- * prefix the extra messages with "DEVINFO:" and move messages matching that pattern to the call stack part
- * add an extra interface IHasAdminInistratorInfo or IExtraCallStackInfo to the error object and have the dialog detect and use that interface.
If possible I'd like to use some prescribed way. I guess the last option is the cleanest one.
Is this something that could be added to the framework or should we create our own dialog to achieve this ?
Last modified on 21 Jan 2021 12:01 by Carl Verbiest