Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Exception in RCP application
Exception in RCP application [message #452929] Wed, 19 July 2006 01:38 Go to next message
Eclipse UserFriend
Originally posted by: vinicius.ferraz.gmail.com

Is It possible open a Dialog with the exception stackTrace...When any
exception(unchecked) was throw in my application?
Re: Exception in RCP application [message #452933 is a reply to message #452929] Wed, 19 July 2006 08:39 Go to previous messageGo to next message
Ilya Shinkarenko is currently offline Ilya ShinkarenkoFriend
Messages: 56
Registered: July 2009
Member
overrride eventLoopException(Throwable exception) method of your
WorkbenchAdvisor implementation

Vinicius Ferraz Campos wrote:
> Is It possible open a Dialog with the exception stackTrace...When any
> exception(unchecked) was throw in my application?


Ilya Shinkarenko
--
www.imedic.de
www.rcp-training.com
Re: Exception in RCP application [message #452974 is a reply to message #452933] Wed, 19 July 2006 12:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vinicius.ferraz.gmail.com

Ilya Shinkarenko wrote:
> overrride eventLoopException(Throwable exception) method of your
> WorkbenchAdvisor implementation
>
> Vinicius Ferraz Campos wrote:
>> Is It possible open a Dialog with the exception stackTrace...When any
>> exception(unchecked) was throw in my application?
>
>
> Ilya Shinkarenko


Only this is not sufficient to show Any Exception, some Some Exceptions,
like NullPointerException, wasn't shown.
Re: Exception in RCP application [message #452980 is a reply to message #452974] Wed, 19 July 2006 12:26 Go to previous messageGo to next message
Ilya Shinkarenko is currently offline Ilya ShinkarenkoFriend
Messages: 56
Registered: July 2009
Member
Of cource not, since it intercepts only unchecked eventLoop exceptions :)

I believe it is generally a bad idea to catch all of the exceptions in
one place. Best of all reconsider your exception handling strategy.

greetz

Ilya Shinkarenko
--
www.imedic.de
www.rcp-training.com


Vinicius Ferraz Campos wrote:
> Ilya Shinkarenko wrote:
>> overrride eventLoopException(Throwable exception) method of your
>> WorkbenchAdvisor implementation
>>
>> Vinicius Ferraz Campos wrote:
>>> Is It possible open a Dialog with the exception stackTrace...When any
>>> exception(unchecked) was throw in my application?
>>
>>
>> Ilya Shinkarenko
>
>
> Only this is not sufficient to show Any Exception, some Some Exceptions,
> like NullPointerException, wasn't shown.
Re: Exception in RCP application [message #452987 is a reply to message #452980] Wed, 19 July 2006 13:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vinicius.ferraz.gmail.com

Ilya Shinkarenko wrote:
> Of cource not, since it intercepts only unchecked eventLoop exceptions :)
>
> I believe it is generally a bad idea to catch all of the exceptions in
> one place. Best of all reconsider your exception handling strategy.
>
> greetz
>
> Ilya Shinkarenko

OK, but I Imagine: When exceptions like the NullPointerException
occurred, you can see it in the log. So, Have a Point where the all the
exceptions go to be logged. =)

If isn't possible to know and override that point, what's the other ideas?

ty...
Re: Exception in RCP application [message #452991 is a reply to message #452987] Wed, 19 July 2006 14:18 Go to previous messageGo to next message
Ilya Shinkarenko is currently offline Ilya ShinkarenkoFriend
Messages: 56
Registered: July 2009
Member
YourPlugin.getDefault().getLog().addLogListener(...)

Vinicius Ferraz Campos wrote:

> OK, but I Imagine: When exceptions like the NullPointerException
> occurred, you can see it in the log. So, Have a Point where the all the
> exceptions go to be logged. =)
>
> If isn't possible to know and override that point, what's the other ideas?
>
> ty...


Ilya Shinkarenko
--
www.imedic.de
www.rcp-training.com
Re: Exception in RCP application [message #452997 is a reply to message #452991] Wed, 19 July 2006 20:25 Go to previous message
Eclipse UserFriend
Originally posted by: vinicius.ferraz.gmail.com

Ilya Shinkarenko wrote:
> YourPlugin.getDefault().getLog().addLogListener(...)
>
> Vinicius Ferraz Campos wrote:
>
>> OK, but I Imagine: When exceptions like the NullPointerException
>> occurred, you can see it in the log. So, Have a Point where the all
>> the exceptions go to be logged. =)
>>
>> If isn't possible to know and override that point, what's the other
>> ideas?
>>
>> ty...
>
>
> Ilya Shinkarenko

I tried but didn't work correctly. Then I tried with:

Platform.addLogListener(...)

After my plugin was activated. Worked Nice, all the Exceptions can I see
there, but in loop...
Previous Topic:SourceViewer and Document
Next Topic:Help Displaying Filesystem in View
Goto Forum:
  


Current Time: Mon Oct 07 23:34:35 GMT 2024

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

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

Back to the top