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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidhandle(InvocationTargetException e, String title, String message) Handles the givenInvocationTargetException.static voidhandle(InvocationTargetException e, Shell parent, String title, String message) Handles the givenInvocationTargetException.static voidhandle(CoreException e, String title, String message) Handles the givenCoreException.static voidhandle(CoreException e, Shell parent, String title, String message) Handles the givenCoreException.static voidprotected voidperform(InvocationTargetException e, Shell shell, String title, String message) protected voidperform(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- theCoreExceptionto be handledtitle- the dialog window's window titlemessage- message to be displayed by the dialog window
-
handle
Handles the givenCoreException.- Parameters:
e- theCoreExceptionto 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- theInvocationTargetExceptionto be handledtitle- the dialog window's window titlemessage- message to be displayed by the dialog window
-
handle
Handles the givenInvocationTargetException.- Parameters:
e- theInvocationTargetExceptionto be handledparent- the dialog window's parent shelltitle- the dialog window's window titlemessage- message to be displayed by the dialog window
-
perform
-
perform
-