Package org.eclipse.compare.internal
Class ExceptionHandler
java.lang.Object
org.eclipse.compare.internal.ExceptionHandler
The default exception handler shows an error dialog when one of its handle methods
is called. If the passed exception is a
CoreException
an error dialog
pops up showing the exception's status information. For a InvocationTargetException
a normal message dialog pops up showing the exception's message. Additionally the exception
is written to the platform log.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
handle
(InvocationTargetException e, String title, String message) Handles the givenInvocationTargetException
.static void
handle
(InvocationTargetException e, Shell parent, String title, String message) Handles the givenInvocationTargetException
.static void
handle
(CoreException e, String title, String message) Handles the givenCoreException
.static void
handle
(CoreException e, Shell parent, String title, String message) Handles the givenCoreException
.static void
protected void
perform
(InvocationTargetException e, Shell shell, String title, String message) protected void
perform
(CoreException e, Shell shell, String title, String message)
-
Constructor Details
-
ExceptionHandler
public ExceptionHandler()
-
-
Method Details
-
log
-
handle
Handles the givenCoreException
. The workbench shell is used as a parent for the dialog window.- Parameters:
e
- theCoreException
to be handledtitle
- the dialog window's window titlemessage
- message to be displayed by the dialog window
-
handle
Handles the givenCoreException
.- Parameters:
e
- theCoreException
to be handledparent
- the dialog window's parent shelltitle
- the dialog window's window titlemessage
- message to be displayed by the dialog window
-
handle
Handles the givenInvocationTargetException
. The workbench shell is used as a parent for the dialog window.- Parameters:
e
- theInvocationTargetException
to be handledtitle
- the dialog window's window titlemessage
- message to be displayed by the dialog window
-
handle
Handles the givenInvocationTargetException
.- Parameters:
e
- theInvocationTargetException
to be handledparent
- the dialog window's parent shelltitle
- the dialog window's window titlemessage
- message to be displayed by the dialog window
-
perform
-
perform
-