Add-ins Experienced a Serious Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an add-in that creates an external keynote resource server and of course sometimes there is an issue accessing the data for one reason or another. In case of this I have my code catching exceptions and notifying the user like this:
try { ...Do the reload... } catch(Exception ex) { _logger.Info("Keynote Server Exception:\r\n" + ex); KMApplication.NotifyService.ShowNotification("Error in keynote server:\n\n" + ex.Message, License.Core.Enums.NotificationIcon.Error); loadResults.LoadStatus = ExternalResourceLoadStatus.ServerThrewException; }
When I get an issue the regular notification is shown to the user like I want, but they also get a generic Revit dialog like the attached that informs them of a 'serious error'. I have googled around but can't figure out exactly where this dialog is coming from or how I can suppress it. I would like to handle the notification to the user myself and let them know what went wrong and NOT have Revit tell them that something is broken.
Does anyone know where this dialog is generated from and how to avoid it?