Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Uncaught Runtime Exceptions
Uncaught Runtime Exceptions [message #319099] Sat, 11 August 2007 16:47 Go to next message
Eclipse UserFriend
I have been using a couple of my own Runtime exceptions, LogicError and
DataIntegrity error(both of which extend RuntimeException), for catching
programming errors.

In 3.1 they did what I expected, that is, when thrown they terminated
execution and offered a stack trace showing the Exception message.

In 3.2.2 that is not happening. A dialog pops up, says a LogicException
has occurred, but does not show the exception's message or offer a
stack trace (the details >> page shows the same cryptic info).

1. Is there a way to obtain the stack trace when your code throws
runtime exceptions?

2. Is there a way to handle uncaught exceptions in your application,
that is, can one plug in a custom uncaught-exception handler?

I've searched the online help, google, and my books, with no luck,

Thanks,

Bill.
Re: Uncaught Runtime Exceptions [message #319100 is a reply to message #319099] Sat, 11 August 2007 16:49 Go to previous messageGo to next message
Eclipse UserFriend
Bill Winspur wrote:
> I have been using a couple of my own Runtime exceptions, LogicError and
> DataIntegrity error(both of which extend RuntimeException), for catching
> programming errors.
>
> In 3.1 they did what I expected, that is, when thrown they terminated
> execution and offered a stack trace showing the Exception message.
>
> In 3.2.2 that is not happening. A dialog pops up, says a LogicException
> has occurred, but does not show the exception's message or offer a
> stack trace (the details >> page shows the same cryptic info).
>
> 1. Is there a way to obtain the stack trace when your code throws
> runtime exceptions?
>
> 2. Is there a way to handle uncaught exceptions in your application,
> that is, can one plug in a custom uncaught-exception handler?
>
> I've searched the online help, google, and my books, with no luck,
>
> Thanks,
>
> Bill.
Sorry, the problem I'm having is on 3.3, not 3.2.2, Bill
Re: Uncaught Runtime Exceptions [message #319122 is a reply to message #319100] Mon, 13 August 2007 09:16 Go to previous message
Eclipse UserFriend
In 3.3 new status handling (error handling) was introduced, which is
probably why you are seeing the difference.

http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench_statushandling.htm

There are ways to plug your own handlers into the status framework.

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
Previous Topic:standaloneUpdate gives strange return code
Next Topic:Extending the CVS plugin
Goto Forum:
  


Current Time: Mon May 12 07:19:54 EDT 2025

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

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

Back to the top