Is there a way to detect when Report Error is called on the manager i.e. when Jiwa catches an exception produced by a plugin?
What I am trying to get is the StackTrace during testing with a client.

SBarnes wrote:Is there a way to detect when Report Error is called on the manager i.e. when Jiwa catches an exception produced by a plugin?
What I am trying to get is the StackTrace during testing with a client.

Mike.Sheen wrote:Jiwa.exe adds a handler for the AppDomain.CurrentDomain.UnhandledException - and that calls the Manager.ReportError (and ReportError doesn't have useful parameters - just a message string and module string - no exception object and thus no stack trace) - so I think what you really want is to have something in the UnhandledException handler to raise an event which you could hook into.
You could always put Try Catch blocks around all your plugin code and log or display it yourself.
Logged DEV-8810 to open up the unhandled exception handling to plugins.

SBarnes wrote:Yeah I tried an unhandled exception handler and it didn't work as I believe one in Jiwa clears the error

Return to Technical and or Programming
Users browsing this forum: No registered users and 1 guest