My problem is the same as the one in this thread: "I want to set a custom error handler, which is called each time an unexpected error occurs. How can I achieve that?"
How can I do this in E4? In E3 it can be achieved by overriding the eventLoopException
method of the ApplicationWorkbenchAdvisor
The thread links to another thread where a StatusReporter
is being extended. Now I am able to extend StatusReporter
but its methods are not invoked automatically when some unexpected exception occurs. Also I get a discouraged access warning that StatusReporter
is not an API.
Another approach, as mentioned in the wiki, is to use StatusHandler
. But I do not want to invoke the StatusHandler
manually. I want a global handler which automatically picks up un-handled exceptions...
Any help would be greatly appreciated.
Thanks, Jehan