Results 1 to 3 of 3
- 04-20-2009, 08:18 AM #1
Member
- Join Date
- Apr 2009
- Posts
- 3
- Rep Power
- 0
[SOLVED] SWT Custom Exception handling
Hi Everyone,
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,
Ved
- 04-20-2009, 08:29 AM #2
Member
- Join Date
- Apr 2009
- Posts
- 3
- Rep Power
- 0
Sorry I should clarify - my question relates to all Unchecked exceptions (either raised by SWT or raised by other operations called by SWT code that I've written) .
Also It's the 3rd result returned from Google not the 4th.
Sorry I failed to carefully proof read my earlier post.
- 04-21-2009, 09:39 AM #3
Member
- Join Date
- Apr 2009
- Posts
- 3
- Rep Power
- 0
Similar Threads
-
Exception handling and logging
By jurka in forum New To JavaReplies: 8Last Post: 09-03-2008, 07:07 PM -
Exception Handling...
By focus_nitin in forum New To JavaReplies: 1Last Post: 02-16-2008, 03:13 AM -
JDBC - Exception handling
By Java Tip in forum Java TipReplies: 0Last Post: 12-05-2007, 04:00 PM -
Jstl Exception Handling
By vamsidharpoosarla in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 07-18-2007, 06:17 AM -
JSTL Exception Handling
By chaatf in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 07-18-2007, 02:24 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks