Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Error handling
Error handling [message #447334] Mon, 03 April 2006 18:33 Go to next message
Eclipse UserFriend
Originally posted by: martin.trummer.maat.at

I've some problem doing error handling in a RCP application.
I'd like to log REALY EVERY exception with log4j and additionally i will
show an error dialog for each unchecked exception. Therefore i overwrote
the eventLoopException(Throwable exception) to display the error dialog
and i added an ILogListener to the Platform to log all exceptions with
log4j.
My problem is that some exceptions still produce no dialog and the
stacktrace is displayed within a view instead.

So is there any article or something else for correct exception handling
within a RCP application?
Re: Error handling [message #447736 is a reply to message #447334] Thu, 13 April 2006 18:48 Go to previous message
Amber Beerends is currently offline Amber BeerendsFriend
Messages: 36
Registered: July 2009
Member
I don't believe you will be able to use
WorkbenchAdvisor.eventLoopException to log every exception that ever
gets thrown. That method is a latch ditch attempt to catch Throwables
that aren't properly caught and handled elsewhere in the code.

Trumml wrote:
> I've some problem doing error handling in a RCP application.
> I'd like to log REALY EVERY exception with log4j and additionally i will
> show an error dialog for each unchecked exception. Therefore i overwrote
> the eventLoopException(Throwable exception) to display the error dialog
> and i added an ILogListener to the Platform to log all exceptions with
> log4j.
> My problem is that some exceptions still produce no dialog and the
> stacktrace is displayed within a view instead.
>
> So is there any article or something else for correct exception handling
> within a RCP application?
>
Previous Topic:Prevent resizing Views in a Perspective
Next Topic:Detecting buttons clicks on wizards
Goto Forum:
  


Current Time: Wed Nov 13 12:35:27 GMT 2024

Powered by FUDForum. Page generated in 0.06305 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top