|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.internal.ui.util.ExceptionHandler
public class 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 | |
---|---|
ExceptionHandler()
|
Method Summary | |
---|---|
static void |
handle(org.eclipse.core.runtime.CoreException e,
org.eclipse.swt.widgets.Shell parent,
java.lang.String title,
java.lang.String message)
Handles the given CoreException . |
static void |
handle(org.eclipse.core.runtime.CoreException e,
java.lang.String title,
java.lang.String message)
Handles the given CoreException . |
static void |
handle(java.lang.reflect.InvocationTargetException e,
org.eclipse.swt.widgets.Shell parent,
java.lang.String title,
java.lang.String message)
Handles the given InvocationTargetException . |
static void |
handle(java.lang.reflect.InvocationTargetException e,
java.lang.String title,
java.lang.String message)
Handles the given InvocationTargetException . |
static void |
log(java.lang.Throwable t,
java.lang.String message)
Logs the given exception using the platform's logging mechanism. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExceptionHandler()
Method Detail |
---|
public static void log(java.lang.Throwable t, java.lang.String message)
JavaStatusConstants.INTERNAL_ERROR
.
public static void handle(org.eclipse.core.runtime.CoreException e, java.lang.String title, java.lang.String message)
CoreException
. The workbench shell is used as a parent
for the dialog window.
e
- the CoreException
to be handledtitle
- the dialog window's window titlemessage
- message to be displayed by the dialog windowpublic static void handle(org.eclipse.core.runtime.CoreException e, org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String message)
CoreException
.
e
- the CoreException
to be handledparent
- the dialog window's parent shelltitle
- the dialog window's window titlemessage
- message to be displayed by the dialog windowpublic static void handle(java.lang.reflect.InvocationTargetException e, java.lang.String title, java.lang.String message)
InvocationTargetException
. The workbench shell is used
as a parent for the dialog window.
e
- the InvocationTargetException
to be handledtitle
- the dialog window's window titlemessage
- message to be displayed by the dialog windowpublic static void handle(java.lang.reflect.InvocationTargetException e, org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String message)
InvocationTargetException
.
e
- the InvocationTargetException
to be handledparent
- the dialog window's parent shelltitle
- the dialog window's window titlemessage
- message to be displayed by the dialog window
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |