[SOLVED] SWT Custom Exception handling
I am struggling to find any information on how to handle Exceptions in SWT in a consistent manner.
What I mean is I want to be able to handle any SWTErrors and SWTExceptions in a consistent manner so that I may either show the errors to the user or log them or whatever. I am worried that some exceptions maybe raised and they are swallowed or unnoticed.
I believe this can be done in Eclipse RCP application by modifying the exception handler class (I haven't done this myself).
I have had a look at this article and it suggests that I should consider all the SWT calls I make - but this does not seem practical and likely that I will overlook some call:
The Java developer's guide to Eclipse By Jim D'Anjou (page 358)
(Accessible by googl'ing: "exception handling in SWT" - look at the 4th result)
I am hoping that there are some resources or standard best practices for this kind of thing (haven't been able to find anything via Google - I also googled this Forum for past posts)
Maybe I just have to do as suggested in the article above?
Please let me know if I am unclear in any way.
Thanks in advance,