Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » ExecutionException
ExecutionException [message #181770] Sun, 22 October 2006 16:34
Eclipse UserFriend
Originally posted by: zeppelin.fmi.uni-sofia.bg

Hi,

I'm trying to understand the usage patterns of
org.eclipse.core.commands.ExecutionException in WTP

What bothers me is that this exception is declared to be thrown by most of
the methods of IUndoableOperation and thus appears in
org.eclipse.wst.common.frameworks.datamodel.IDataModelOperat ion which is
the base interface for all WTP commands. In the same time the operations
in IDataModelOperation return an IStatus object, which can also contain
and exception cause.

So my question is when a IStatus object containing the cause exception
should be returned and when an ExecutionException should be thrown?

So far the only difference that I have seen regarding handling is that in
the case of exception a dialog saying "Unexpected Exception" appears while
if an IStatus is returned the dialog displays the message from
IStatus.getMessage().

Thanks,
Hristo
Previous Topic:provisionaldefinition
Next Topic:JDT Library support in WTP
Goto Forum:
  


Current Time: Fri Apr 26 18:56:32 GMT 2024

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

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

Back to the top