Exception in RCP application [message #452929] |
Wed, 19 July 2006 01:38 |
Eclipse User |
|
|
|
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 #452974 is a reply to message #452933] |
Wed, 19 July 2006 12:10 |
Eclipse User |
|
|
|
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 #452987 is a reply to message #452980] |
Wed, 19 July 2006 13:11 |
Eclipse User |
|
|
|
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 #452997 is a reply to message #452991] |
Wed, 19 July 2006 20:25 |
Eclipse User |
|
|
|
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...
|
|
|
Powered by
FUDForum. Page generated in 0.03522 seconds