Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Error handling
Error handling [message #447334] Mon, 03 April 2006 14: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 14:48 Go to previous message
Eclipse UserFriend
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 Jul 02 08:29:25 EDT 2025

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

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

Back to the top