Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Exception handling in Eclipse
Exception handling in Eclipse [message #313709] Fri, 23 March 2007 02:30 Go to next message
Eclipse UserFriend
Originally posted by: jayam.balasubramaniam.gmail.com

Hi all,
In Eclipse how the exceptions are handled?. Eclipse is an
application so what is the framework used to handel errors and exceptions?
I want to do the same for my rcp application.

Thanks,
Jayam
Re: Exception handling in Eclipse [message #313710 is a reply to message #313709] Fri, 23 March 2007 07:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Jayam,

I really depends on the exceptions and when they occur. Generally you
could bring up a message box indicating the problem (e.g.,
org.eclipse.jface.ErrorDialog), or you could log the exception
(org.eclipse.core.runtime.Plugin.getLog()) so that a recording of the
issue is left in the Error Log view.


Jayam wrote:
> Hi all,
> In Eclipse how the exceptions are handled?. Eclipse is an
> application so what is the framework used to handel errors and
> exceptions?
> I want to do the same for my rcp application.
>
> Thanks,
> Jayam
>
>
>
Re: Exception handling in Eclipse [message #313711 is a reply to message #313710] Fri, 23 March 2007 08:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jacek.pospychala.pl.ibm.com

In 3.3, there is a new status handling facility, where all you have to
do is deliver an IStatus to it. Customizable Status handler takes care
of either showing dialog, or adding entry to log.

Ed Merks wrote:
> Jayam,
>
> I really depends on the exceptions and when they occur. Generally you
> could bring up a message box indicating the problem (e.g.,
> org.eclipse.jface.ErrorDialog), or you could log the exception
> (org.eclipse.core.runtime.Plugin.getLog()) so that a recording of the
> issue is left in the Error Log view.
>
>
> Jayam wrote:
>> Hi all,
>> In Eclipse how the exceptions are handled?. Eclipse is an
>> application so what is the framework used to handel errors and
>> exceptions?
>> I want to do the same for my rcp application.
>>
>> Thanks,
>> Jayam
>>
>>
>>
Re: Exception handling in Eclipse [message #313712 is a reply to message #313711] Fri, 23 March 2007 09:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Jacek,

It sounds cool. What are the specific classes involved that I could
learn more about them? I saw org.eclipse.debug.core.IStatusHandler, but
that says @since 2.0 and the plugin depends on org.eclipse.core.resources...


Jacek Pospychala wrote:
> In 3.3, there is a new status handling facility, where all you have to
> do is deliver an IStatus to it. Customizable Status handler takes care
> of either showing dialog, or adding entry to log.
>
> Ed Merks wrote:
>> Jayam,
>>
>> I really depends on the exceptions and when they occur. Generally
>> you could bring up a message box indicating the problem (e.g.,
>> org.eclipse.jface.ErrorDialog), or you could log the exception
>> (org.eclipse.core.runtime.Plugin.getLog()) so that a recording of the
>> issue is left in the Error Log view.
>>
>>
>> Jayam wrote:
>>> Hi all,
>>> In Eclipse how the exceptions are handled?. Eclipse is an
>>> application so what is the framework used to handel errors and
>>> exceptions?
>>> I want to do the same for my rcp application.
>>>
>>> Thanks,
>>> Jayam
>>>
>>>
>>>
Re: Exception handling in Eclipse [message #313715 is a reply to message #313712] Fri, 23 March 2007 10:30 Go to previous message
Eclipse UserFriend
Originally posted by: jacek.pospychala.pl.ibm.com

Ed,
they are in org.eclipse.ui.statushandlers and ui.internal.statushandlers,
You can also have a look at wiki:
http://wiki.eclipse.org/index.php/Platform_UI_Error_Handling

Ed Merks wrote:
> Jacek,
>
> It sounds cool. What are the specific classes involved that I could
> learn more about them? I saw org.eclipse.debug.core.IStatusHandler, but
> that says @since 2.0 and the plugin depends on
> org.eclipse.core.resources...
>
>
> Jacek Pospychala wrote:
>> In 3.3, there is a new status handling facility, where all you have to
>> do is deliver an IStatus to it. Customizable Status handler takes care
>> of either showing dialog, or adding entry to log.
>>
>> Ed Merks wrote:
>>> Jayam,
>>>
>>> I really depends on the exceptions and when they occur. Generally
>>> you could bring up a message box indicating the problem (e.g.,
>>> org.eclipse.jface.ErrorDialog), or you could log the exception
>>> (org.eclipse.core.runtime.Plugin.getLog()) so that a recording of the
>>> issue is left in the Error Log view.
>>>
>>>
>>> Jayam wrote:
>>>> Hi all,
>>>> In Eclipse how the exceptions are handled?. Eclipse is an
>>>> application so what is the framework used to handel errors and
>>>> exceptions?
>>>> I want to do the same for my rcp application.
>>>>
>>>> Thanks,
>>>> Jayam
>>>>
>>>>
>>>>
Previous Topic:[ANN] The Eclipse Google Summer of Code 2007 in on - students and mentors wanted - deadline is March
Next Topic:Specifying JVM on windows for 3.3m5eh
Goto Forum:
  


Current Time: Wed May 07 13:24:27 EDT 2025

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

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

Back to the top