Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsExecutionException
https://www.eclipse.org/forums/index.php/mv/msg/57282/181770/#msg_181770
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().